Advertisement
Tritonio

Reinstall different base of void linux (musl/glibc)

Jan 17th, 2025
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. Reinstallation isn't that terribly difficult:
  2.  
  3. Grab a list of all manually installed packages xpkg -m > pkglist.manual with the xpkg tool from xtools) and the list of all packages xpkg > pkglist.all
  4.  
  5. boot with a Live CD, mount your target system at /mnt)
  6.  
  7. uninstall all packages xargs xbps-remove -RFf -r /mnt < pkglist.all - the idea here is, that any file you did modify (thinking mostly about /etc/ here) will be preserved.
  8.  
  9. move the old xbps package database out of the way ( mv /mnt/var/db/xbps /mnt/var/xbps.old-musl)
  10.  
  11. Reinstall the packages from the glibc repo xargs xbps-install -yAS -R http://auto.voidlinux.org/current -r /mnt base-system < pkglist.manual
  12.  
  13. As long as you don't steamroll at installation (-f your modifications should be preserved).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement