User Tools

Site Tools


linux:dev1_3manage

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:dev1_3manage [2026/04/05 02:36] azmanlinux:dev1_3manage [2026/04/05 02:44] (current) azman
Line 6: Line 6:
  
 //**Note:** To automatically update system essentials,//<code>$ apt install unattended-upgrades ; dpkg-reconfigure --priority=low unattended-upgrades</code> //**Note:** To automatically update system essentials,//<code>$ apt install unattended-upgrades ; dpkg-reconfigure --priority=low unattended-upgrades</code>
 +
 +===== Upgrading =====
 +
 +To do an upgrade:
 +
 +  * Modify ''/etc/apt/sources.list'' and replace the release codenames <code># sed -i 's/old_release/new_release/g' /etc/apt/sources.list</code>
 +    * skip ''-i'' option for a dry-run
 +  * Update package list <code># apt update</code>
 +  * Upgrade distribution <code># apt dist-upgrade</code>
 +  * To make sure EVERYTHING is upgraded (avoids old packages held back)
 +    * <code># apt full-upgrade</code>
 +  * Do house cleaning <code>
 +# apt autoremove
 +# apt clean</code>
 +
 +That should do it!
  
 ===== List Installed Packages ===== ===== List Installed Packages =====
Line 30: Line 46:
  
 e.g. To change timezone <code># dpkg-reconfigure tzdata</code> e.g. To change timezone <code># dpkg-reconfigure tzdata</code>
- 
-===== Upgrading APT-based systems ===== 
- 
-To do an upgrade: 
- 
-  * Modify ''/etc/apt/sources.list'' and replace the release codenames <code># sed -i 's/old_release/new_release/g' /etc/apt/sources.list</code> 
-    * skip ''-i'' option for a dry-run 
-  * Update package list <code># apt update</code> 
-  * Upgrade distribution <code># apt dist-upgrade</code> 
-  * To make sure EVERYTHING is upgraded (avoids old packages held back) 
-    * <code># apt full-upgrade</code> 
-  * Do house cleaning <code> 
-# apt autoremove 
-# apt clean</code> 
- 
-That should do it! 
  
 ===== Search package for specific binary ===== ===== Search package for specific binary =====
Line 57: Line 57:
   * Use dry-run (simulation) option ''-s'' <code># apt install -s <pg1> ... <pkgN> 2>/dev/null|grep manually</code>   * Use dry-run (simulation) option ''-s'' <code># apt install -s <pg1> ... <pkgN> 2>/dev/null|grep manually</code>
   * Removed the package(s) displayed from your install list and re-run without ''-s''   * Removed the package(s) displayed from your install list and re-run without ''-s''
 +
 +===== GRUB Stuffs =====
 +
 +To prevent GRUB from looking for other OS every time it is updated:
 +  * edit ''/etc/default/grub'' and insert <code>GRUB_DISABLE_OS_PROBER=true</code>
 +  * run update-grub
 +
 +To add a custom entry:
 +  * add a menuentry in ''/etc/grub.d/40_custom''
 +  * uses the same menuentry format as in ''/boot/grub/grub.cfg''
 +    * e.g. to boot my Slackware partition I can insert <code grub>
 +menuentry 'Slackware' --class slackware --class gnu-linux --class gnu --class os $menuentry_id_option 'my1part-<uuid>' {
 + insmod part_gpt
 + insmod ext2
 + set root='hd0,gpt4'
 + if [ x$feature_platform_search_hint = xy ]; then
 +   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  <uuid>
 + else
 +   search --no-floppy --fs-uuid --set=root 4d95a526-2518-4fd6-a904-f7bd2729145d
 + fi
 + linux /boot/vmlinuz-huge-4.4.240 root=/dev/sda4
 +}
 +</code>
 +    * use ''initrd'' (after ''linux'' line) to specify an initrd/initramfs
 +    * of course, <uuid> should be a valid filesystem uuid 
 +  * run update-grub
 +
 +===== KVM Stuffs =====
 +
 +If KVM group is missing, simply create one...
 +<code># [ -z "$(cat /etc/group|grep kvm)" ] && addgroup --gid 125 kvm</code>
  
linux/dev1_3manage.1775356619.txt.gz · Last modified: by azman

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki