Get list of packages not in base system
Hey all,
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. |
You can use 'slackpkg clean-system' to show you the packages installed that are not part of the official Slackware tree.
|
From slackpkg manpage:
Quote:
|
No packages will be deleted unless you say to do so. You can still scroll through the list and when done just select cancel.
|
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. |
Use slackpkg
Code:
$ generate-template installed Code:
$ ls /var/log/packages |
as external packages usually come with custom tags, to see them you can also filter the standard ones out with a regexp
Code:
ls -1 /var/log/packages/ | grep -v '\-[0-9]\{1,2\}$' Code:
# ls -1 /var/log/packages/ | grep -v '\-[0-9]\{1,2\}$' | wc -l |
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:
Code:
slackpkg -dialog=off -batch=on -default_answer=no clean-system > NonSlackwarePackages.txt |
thanks for the links, very interesting threads :)
I'll dive into them. |
T3slider: That works!
Thanks |
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 |
All times are GMT -5. The time now is 11:37 AM. |