mirror of
https://github.com/Erreur32/cheat.git
synced 2024-11-18 18:00:44 +01:00
27 lines
909 B
Text
27 lines
909 B
Text
|
# Create a Slackware package from a structured directory and sub-tree
|
||
|
$ cd /path/to/pkg/dir
|
||
|
$ su - c 'makepkg --linkadd y --chown n $foo-1.0.3-x86_64-1_tag.tgz'
|
||
|
|
||
|
|
||
|
# Install a Slackware package
|
||
|
installpkg foo-1.0.3-x86_64-1.tgz
|
||
|
|
||
|
# Install a Slackware package to non-standard location
|
||
|
ROOT=/path/to/dir installpkg foo-1.0.4-noarch-1.tgz
|
||
|
|
||
|
# Create backup of files that will be overwritten when installing
|
||
|
tar czvf /tmp/backup.tar.gz $(installpkg --warn foo-1.0.4-noarch-1.tgz)
|
||
|
|
||
|
|
||
|
# Upgrade a Slackware package including files only in new version
|
||
|
upgradepkg --install-new foo-1.0.6-noarch-1.tgz
|
||
|
|
||
|
# Upgrade a Slackware package even if version is the same
|
||
|
upgradepkg --reinstall foo-1.0.4-noarch-1.tgz
|
||
|
|
||
|
|
||
|
# Remove a Slackware package
|
||
|
removepkg foo-0.2.8-x86_64-1
|
||
|
|
||
|
# Remove a Slackware package, retaining a backup (uninstalled) copy
|
||
|
removepkg -copy foo-0.2.8-x86_64-1 # -> /var/log/setup/tmp/preserved_packages/foo...
|