A low-level package manager, similar to 'dpkg', 'rpm' and 'pkgtool'. Created for Linux distributions, written in Shell POSIX. With tinypkg you can: create, install, list and remove packages in a universal way!
Use tinypkg only with root!
chmod +x tinypkg && cp tinypkg /usr/sbin
- -h: Displays help.
- -c: Creates a package.
- -i: Installs packages.
- -r: Removes packages.
- -l: Lists installed packages.
- --fakeroot DIR: Changes installation / from another directory. Used with -i
'NOTE! The package name must be named as: <name>-<version>.tar If spaces are needed use underscores. e.g.: Software_editor-01.0424.tar'
tinypkg -c leafpad-0.8.17.tar
# Using absolute path
tinypkg -i /home/slackjeff/bin/leafpad-0.18.17.tar
# Using relative path
tinypkg -i leafpad-0.18.17.tar
# Installing multiple packages
tinypkg -i /tmp/*.tar
'Note! If there are multiple packages with the same name (e.g.: leafpad-version or leafpad-bin-version). It just shows you and does nothing!'
tinypkg -r leafpad
Make sure you follow these guidelines:
- Keep the code below 250 lines (Comments not included)
- Use only the standard POSIX Shell
- Do not include unnecessary things!
- Create option to update available packages.
- Make it even faster.
- Remove dirt in the code. (replacing external tools)
- Create a post installation script
- MD5 hash of each package when creating. And check when installing. (security)