Home

pacman

pacman is the package manager for Arch Linux. It is used to install, update, and manage packages on the system. Pacman handles package installation, removal, and upgrades, along with package dependencies.

package and application are used interchangingbly.

Updating the system and applications

Explanation of options:

  • -S: This option tells pacman to synchronize packages. It can be used to install new packages or to update existing ones.
  • -y: This option stands for "refresh." It instructs pacman to refresh the package databases before performing the operation. This ensures that you have the latest information about available packages and their versions.
  • -u: This option stands for "upgrade." It tells pacman to upgrade all the installed packages on the system to their latest versions.
sudo pacman -Syu

Commands

Removing a package:

  • -R: This option tells pacman to remove a package.
  • -s: This option indicates that it should also remove any unused dependencies that were installed with the package.
  • -c: This option is used to remove configuration files associated with the package.
sudo pacman -R packagename

sudo pacman -Rsc ruby