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:55] azmanlinux:slack_4system [2025/12/07 09:41] (current) – [Listing Packages] azman
Line 5: Line 5:
 ===== Listing Packages ===== ===== Listing Packages =====
  
-Simply list files in /var/log/packages (path is actually a link to ''/var/lib/pkgtools/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>
  
-List full package name (with version) only <code># for that in $(ls /var/log/packages/) ; do echo $that ; done | sort</code>+List full package name (with version) only <code bash># for that in $(ls /var/log/packages/) ; do echo $that ; done | sort</code> 
 + 
 +List installed package name only <code bash># list=$(ls /var/log/packages/) ; for that in $list ; do that=${that%-*} ; that=${that%-*} ; that=${that%-*} ; echo $that ; done</code>
  
 Find installed packages that are not in Slackware tree <code bash> Find installed packages that are not in Slackware tree <code bash>
Line 17: Line 19:
 done</code> This can also be done using ''slackview'' script (in my1shell repo) <code># slackview find --alien</code> done</code> This can also be done using ''slackview'' script (in my1shell repo) <code># slackview find --alien</code>
  
-Find installation log for standard packages <code bash> +View information on specific package <code># slackview find [pkg_name]</code> 
-slackfull=slackware64-15.0 ; slacktree=/home/share/slackware/$slackfull ; + 
-for pkg in $(find $slacktree/ -name "*.txz" | sort) ; do +To list all official packages without DE <code bash>for pack in a d k l n ap t tcl x xap ; do 
- base=$(basename $pkg) ; +  slackview file --name pkgs.txt --insert --pack $pack 
- name=${base%.*} ; +done</code>
- test="/var/log/packages/$name"+
--f "$test" ] && continue ; +
- echo "** Cannot find file for $test" +
-done +
-</code>+
  
 To list currently installed packages (to be used in my1live) To list currently installed packages (to be used in my1live)
  
-  * get all installed packages <code bash># slackview file --name pkgs.txt --installed --insert</code>+  * get all installed packages <code bash># slackview file --name pkgs.txt --insert --installed</code>
   * sort based on software sets <code># slackview file --name pkgs.txt --sort</code>   * sort based on software sets <code># slackview file --name pkgs.txt --sort</code>
   * remove those already selected for my1live <code>slackview file --name pkgs.txt --dups curr.list</code>   * remove those already selected for my1live <code>slackview file --name pkgs.txt --dups curr.list</code>
linux/slack_4system.1736650540.txt.gz · Last modified: by azman