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 [2026/04/18 03:29] – [Listing Packages] azmanlinux:slack_4system [2026/07/20 03:08] (current) 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 bash>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 bash>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>+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>
-slackfull=slackware64-15.0 ; slacktree=/home/share/slackware/$slackfull ;+slackfull=slackware64-15.0 ; slacktree=/home/share/slackware/$slackfull ;
 for pkg in $(ls /var/log/packages/) ; do for pkg in $(ls /var/log/packages/) ; do
  pkgf=$(find $slacktree/ -name "${pkg}.txz") ;  pkgf=$(find $slacktree/ -name "${pkg}.txz") ;
  [ -f "$pkgf" ] && continue ;  [ -f "$pkgf" ] && continue ;
  echo "** Package '$pkg' is alien!" ;  echo "** Package '$pkg' is alien!" ;
-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>
  
-View information on specific package <code>slackview find [pkg_name]</code>+View information on specific package <code>slackview find [pkg_name]</code>
  
-To list all official packages without DE <code bash>for pack in a d k l n ap t tcl x xap ; do+To list all official packages without DE <code bash>for pack in a d k l n ap t tcl x xap ; do
   slackview file --name pkgs.txt --insert --pack $pack ;   slackview file --name pkgs.txt --insert --pack $pack ;
 done</code> done</code>
  
-To list currently installed packages (e.g. to be used in my1live) <code bash>slackview file --name pkgs.txt --insert --installed</code>+To list currently installed packages (e.g. to be used in my1live) <code bash>slackview file --name pkgs.txt --insert --installed</code>
  
-To sort packages in //pkgs.txt// based on software sets <code>slackview file --name pkgs.txt --sort</code>+To sort packages in //pkgs.txt// based on software sets <code>slackview file --name pkgs.txt --sort</code>
  
-To remove packages in //dups.txt// that is/are found in //pkgs.txt// <code>slackview file --name pkgs.txt --dups dups.txt</code>+To remove packages in //dups.txt// that is/are found in //pkgs.txt// <code>slackview file --name pkgs.txt --dups dups.txt</code>
  
 ===== Building Custom Kernel ===== ===== Building Custom Kernel =====
Line 43: Line 43:
     * ''modules_install'' requires root, obviously!     * ''modules_install'' requires root, obviously!
   * copy (as root) kernel <code>   * copy (as root) kernel <code>
-cp arch/x86/boot/bzImage /boot/vmlinuz-generic-4.14.12 +cp arch/x86/boot/bzImage /boot/vmlinuz-generic-4.14.12 
-cp System.map /boot/System.map-generic-4.14.12 +cp System.map /boot/System.map-generic-4.14.12 
-cp .config /boot/config-generic-4.14.12</code> +cp .config /boot/config-generic-4.14.12</code> 
-  * generate initrd if using generic<code>mkinitrd -c -k 4.14.12 -f ext4 -r /dev/sda3 -m ext4 -u -o /boot/initrd.gz</code>+  * generate initrd if using generic<code>mkinitrd -c -k 4.14.12 -f ext4 -r /dev/sda3 -m ext4 -u -o /boot/initrd.gz</code>
     * a useful initrd generator script IS available     * a useful initrd generator script IS available
     * run ''/usr/share/mkinitrd/mkinitrd_command_generator.sh''     * run ''/usr/share/mkinitrd/mkinitrd_command_generator.sh''
     * then run the generated/recommended command     * then run the generated/recommended command
     * checkout the ''-P'' option if required     * checkout the ''-P'' option if required
linux/slack_4system.1776482999.txt.gz · Last modified: by azman

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki