Useful system level notes.
Simply list files in /var/log/packages (path is actually a link to /var/lib/pkgtools/packages/).
# ls -l /var/log/packages/
List full package name (with version) only
# for that in $(ls /var/log/packages/) ; do echo $that ; done | sort
List installed package name only
# list=$(ls /var/log/packages/) ; for that in $list ; do that=${that%-*} ; that=${that%-*} ; that=${that%-*} ; echo $that ; done
Find installed packages that are not in Slackware tree
slackfull=slackware64-15.0 ; slacktree=/home/share/slackware/$slackfull ; for pkg in $(ls /var/log/packages/) ; do pkgf=$(find $slacktree/ -name "${pkg}.txz") ; [ -f "$pkgf" ] && continue ; echo "** Package '$pkg' is alien!" ; done
This can also be done using slackview script (in my1shell repo)
# slackview find --alien
View information on specific package
# slackview find [pkg_name]
To list all official packages without DE
for pack in a d k l n ap t tcl x xap ; do slackview file --name pkgs.txt --insert --pack $pack ; done
To list currently installed packages (to be used in my1live)
# slackview file --name pkgs.txt --insert --installed
# slackview file --name pkgs.txt --sort
slackview file --name pkgs.txt --dups curr.list
/usr/src/ (e.g. linux-4.4.199)/boot # cp /boot/config-generic? > .config
# make oldconfig
# make menuconfig
# make -j4 bzImage
# make -j4 modules && make modules_install
modules_install requires root, obviously!cp arch/x86/boot/bzImage /boot/vmlinuz-generic-4.14.12 cp System.map /boot/System.map-generic-4.14.12 cp .config /boot/config-generic-4.14.12
mkinitrd -c -k 4.14.12 -f ext4 -r /dev/sda3 -m ext4 -u -o /boot/initrd.gz
/usr/share/mkinitrd/mkinitrd_command_generator.sh-P option if required