SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is it possible to get a list of packages installed on the system that are not a part of Slackware (i.e. take all installed on system, take all packages that originally come with slack, find difference)?
Worthy to mention is that I use slackpkg and run -current.
Thanks lots.
Click here to see the post LQ members have rated as the most helpful post in this thread.
clean-system
This action removes all of the packages that don't belong to a standard Slackware installation. With this option, you can clean up your system,
removing third-party packages as well as any packages that were removed from the official Slackware package set.
If you have some third party (or custom built) packages that you would like to keep, you can temporarily add them to the list of blacklisted packages
before you run the 'clean-system' action.
I don't want to remove any packages nor a clean install, just to see packages I have installed by hand.
I do slackpkg clean-system to see the third party packages installed on my Slack. However, I found it hard to dump the list into a text file. I resorted to running it, then cancel. Copy and paste to a text file then repeat again scrolling down for the next line until all packages are copied to text file.
With 78+ packages currently I have, is there a better way of dumping those list somewhere. I cannot see such option on the man page.
This will give you a list of installed official Slackware packages in /etc/slackpkg/templates/installed. But you'd still have to do some cutting and grepping and diffing to compare with the output of
Code:
$ ls /var/log/packages
Last edited by brixtoncalling; 11-03-2010 at 12:00 AM.
I'm not sure if this still works (I checked it in a previous release...either 12.2 or 13.0 and it still did), but I recall this thread, which mentions this:
Just to show another way to skin the cat.
This script uses the PACKAGES.TXT file that slackpkg creates.
It will also show packages that are blacklisted in /etc/slackpkg/blacklist
Code:
#!/bin/bash
# Script to list non-official installed packages
# Official packages are referenced from PACKAGES.TXT created by slackpkg
# Installed packages are referenced from contents of /var/log/packages/
for PKG in /var/log/packages/* ; do
if ! grep -q ${PKG##/var/log/packages/} /var/lib/slackpkg/PACKAGES.TXT ; then
echo ${PKG##/var/log/packages/}
fi
done
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.