User Tools

Site Tools


linux:slack_4system

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:slack_4system [2025/01/12 10:25] azmanlinux:slack_4system [2025/01/12 10:58] (current) – [Listing Packages] azman
Line 5: Line 5:
 ===== Listing Packages ===== ===== Listing Packages =====
  
-Run ls -l output on /var/log/packages <code># ls -l /var/log/packages</code>+Simply list files in /var/log/packages (path is actually a link to ''/var/lib/pkgtools/packages/''). <code bash># ls -l /var/log/packages/</code>
  
-Find package files for installed packages <code> +List full package name (with version) only <code bash>for that in $(ls /var/log/packages/; do echo $that ; done | sort</code>
-for pkg in `ls /var/log/packages/; do +
- pkg_file=`find /home/share/slackware/slackware64-14.2/ -name "${pkg}.txz"` ; +
- [ -f "$pkg_file" ] && continue ; +
- echo "Cannot find file for $pkg" ; +
-done +
-</code>+
  
-Find installation log for standard packages <code bash> +Find installed packages that are not in Slackware tree <code bash> 
-for pkg in `find /home/share/slackware/slackware64-14.2/slackware64 -name "*.txz" | sort` ; do +slackfull=slackware64-15.0 ; slacktree=/home/share/slackware/$slackfull 
- base=`basename $pkg` +for pkg in $(ls /var/log/packages/) ; do 
- name=${base%.*} ; + pkgf=$(find $slacktree/ -name "${pkg}.txz"
- test="/var/log/packages/$name"+ [ -f "$pkgf" ] && continue ; 
- [ -f "$test" ] && continue ; + echo "** Package '$pkg' is alien!" ; 
- echo "Cannot find file for $test" ; +done</code> This can also be done using ''slackview'' script (in my1shell repo) <code># slackview find --alien</code> 
-done + 
-</code>+View information on specific package <code># slackview find [pkg_name]</code>
  
 To list currently installed packages (to be used in my1live) To list currently installed packages (to be used in my1live)
linux/slack_4system.1736648729.txt.gz · Last modified: by azman