Human Readable   

 

     
   
     

Listing Non Stock Slackware Packages

© Copyright Darrell Anderson.

(Spring – Summer 2008)

Any person who sticks with Slackware soon will be installing third party packages or compiling and building packages. Tracking all of these packages is not straightforward with the stock Slackware.

Various Slackware tools exist to manage and install packages. However, not all Slackers use these tools. Those tools likely would create a list of non stock packages, but all that is needed is a simple shell script to create a straightforward text file list. From this text file users would know which non stock packages were added. This would be helpful in the event of a bare metal recovery or hard drive failure.

The attached script saves a copy of the results in two different locations. The script is designed for two hard drives and the mappings are specific. Be sure to modify those locations.

Except with a disaster event such as theft or fire, storing the resulting text file in two locations ensures at least one copy is always available in the event of a hard drive failure. To a certain degree, this would work with two different partitions on the same drive too.

To automate the process, add a cron job to run the script hourly. That might seem like overkill, but predicting when a package is installed is almost impossible. The script will have no impact on system resources when run and this ensures the list is as current as possible.

A more robust script exists at LinuxQuestions.org. Anybody using Slackware who wants to list all the non stock packages they have installed are encouraged to either version.

Files:

/usr/local/bin/diffpkg

/etc/functions-colors

Finis.

Table of Contents