FAQ
Frequently asked questions
Here are some frequently asked questions. We recommend to read that all users, especially those using CachyOS or Arch-based distributions.
Software management FAQ
Here are all the questions related to the installation and uninstallation of software on your system.
How can I update the system?
sudo pacman -Syu
How can I install a package?
sudo pacman -S package
How can I remove a package?
sudo pacman -R package
How can I remove a package and its dependencies that are no longer needed by other packages?
sudo pacman -Rs package
Fix “unable to lock database” Error in CachyOS - Arch Linux
sudo rm /var/lib/pacman/db.lck
How to revert to an older version of the package?
If you install the latest update and find out a specific package doesn’t work or a newer version of the software introduces a bug. You definitely want to come back to the previous version.
- Go into the pacman cache and find the needed package.
cd /var/cache/pacman/pkg
- Install the needed package.
sudo pacman -U package
System maintanance FAQ
Here are all the questions related to the system maintenance or changes of configurations of your system.
How can I update GRUB after sudo pacman -Syu
This is indicated by the following text in the terminal and usually comes after a sudo pacman -Syu
: grub packages were updated.
:: To use the new features provided in this GRUB update, it is recommended
to install it to the MBR or UEFI. Due to potential configuration
incompatibilities, it is advised to run both, installation and generation
of configuration:
$ grub-install ...
$ grub-mkconfig -o /boot/grub/grub.cfg
If you have UEFI
To update GRUB on a UEFI system, simply run the following commands:
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=cachyos
sudo grub-mkconfig -o /boot/grub/grub.cfg
If you have BIOS
To update GRUB on a BIOS system, run the following command:
sudo grub-install --target=i386-pc /dev/sda
sudo grub-mkconfig -o /boot/grub/grub.cfg