|Written by Administrator|
|Wednesday, 13 February 2008 22:16|
This article covers two things:
Pkgtool is the one used during setup. You can call it any time after setup with the command "pkgtool". Pkgtool provides only basic functions, as a consequence I have no use for it. Its main advantage is the ability to run setup scripts again.
This is the tool I use quite often. I also recommend to use "upgradepkg" to upgrade to a new release. From the help:
Usage: upgradepkg newpackage [newpackage2 ... ]
upgradepkg [ --dry-run ] [ --install-new ] [ --reinstall ] [ --verbose ] newpackagename
Output a report about which packages would be installed or upgraded but don't actually perform the upgrades.
Normally upgradepkg only upgrades packages that are already installed on the system, and will skip any packages that do not already have a version installed. If --install-new is specified, the behavior is modified to install new packages in addition to upgrading existing ones.
Upgradepkg usually skips packages if the exact same package (matching name, version, arch, and build number) is already installed on the system. Use the --reinstall option if you want to upgrade all packages even if the same version is already installed.
Show all the gory details of the upgrade.
Installpkg installs single or multiple *.tgz binary packages.
installpkg [ -warn ] [ -root /otherroot ] [ -infobox ] [ -menu ] [ -ask ] [ -priority ADD|REC|OPT|SKP ] [-tagfile /somedir/tagfile ] packagename [ packagename2 ... ]
From the man page:
Removepkg removes a previously installed Slackware package, while writing a progress report to the standard output. A package may be specified either by the full package name (as you'd see listed in /var/log/packages/), or by the base package name. For example, the package foo-1.0-i386-1.tgz may be removed with any of the following commands:
When deleting files, removepkg will analyze the contents of the other packages installed on your system, and will only delete the files that are unique to the package being removed. Similarly, the installation scripts for all the other packages will be considered when deciding whether or not to delete symbolic links from the package.
Removing a package (as well as installing one) can be a dangerous undertaking. For this reason, there is the -warn option available. When you use this, removepkg will not actually remove any files or links, but will output a detailed report of what it would do if you actually did remove the package. It's suggested that you do this (and maybe pipe the output to less ) before removing packages to make sure you've backed up anything that might be important.
When removing a package, it's original file index will be moved from /var/log/packages to /var/log/removed_packages. Likewise, it's installation script will be moved from /var/log/scripts to /var/log/removed_scripts.
removepkg [ -copy ] [ -keep ] [ -preserve ] [ -warn ] packagename
Slackpkg is part of the /extra folder. It is an excellent tool I use to watch for certain current software packages, but it can much more. From the descriptive file:
Slackpkg can install, remove, upgrade, reinstall, download, search for info and even clean your system. From the help:
Pay attention to the "clean-system" switch, which allows you to remove all packages which are not present in the official Slackware set.
After you have installed it, you must configure it for the first use. Change to /etc/slackpkg
Watch for certain packages
As I mentioned before, I use slackpkg to watch for certain packages, amongst other things. To do so I modified "slackpkg.conf" slightly:
# The lines below will set the download priority.
Furthermore I created a file "monitoring" with all the packages I like to watch:
FIle permissions of "monitoring": 744
I use "crontab" to execute the file each night:
# Download selected Slackware-Current packages to /var/tmp/slackpkg-current
Get security patches
Needless to say that it is important to patch your box. It is such an easy task:
# Download Slackware patches with ncftpget to /var/tmp/slackpkg-current/patches
|Last Updated on Sunday, 10 June 2012 16:04|