Tuesday, June 8, 2010

Some useful pacman commands

To install a package: sudo pacman -S packagename

To remove a single package, leaving all of its dependencies installed:

# pacman -R package_name

To remove a package's dependencies which are not required by any other installed package:

# pacman -Rs package_name

There should be a clear warning about regular dist upgrades,
Having explained that:
Doing an upgrade but excluding a package that causes trouble
sudo pacman -Syu --ignore libgl

In this case the libgl packages has a conflict with nvidia-utils
and shouldn't be installed or updated to avoid further conflicts.

sudo pacman -Ss dvd lists all programs connected to dvd.

Install a 'local' package that is not from a repository:

# pacman -U /path/to/package/package_name-version.pkg.tar.gz



see http://wiki.archlinux.org/index.php/Pacman

Info on tools and gui for pacman:

http://wiki.archlinux.org/index.php/Pacman_GUI_Frontends

No comments:

Blog Archive