Pacman arch linux package

Pacman Home Page

pacman is a utility which manages software packages in Linux. It uses simple compressed files as a package format, and maintains a text-based package database (more of a hierarchy), just in case some hand tweaking is necessary.

pacman does not strive to «do everything.» It will add, remove and upgrade packages in the system, and it will allow you to query the package database for installed packages, files and owners. It also attempts to handle dependencies automatically and can download packages from a remote server.

History

Version 2.0 of pacman introduced the ability to sync packages (the —sync option) with a master server through the use of package databases. Prior to this, packages would have to be installed manually using the —add and —upgrade operations.

Version 3.0 was the switch to a two-part pacman — a back-end named libalpm (library for Arch Linux Package Management) and the familiar pacman front-end. Speed in many cases was improved, along with dependency and conflict resolution being able to handle a much wider variety of cases. The switch to a library-based program should also make it easier in the future to develop alternative front ends.

Version 4.0 added package signing and verification capabilities to the entire makepkg/repo-add/pacman toolchain via GnuPG and GPGME.

Version 5.0 added support for pre/post-transaction hooks and sync database file list operations.

Читайте также:  Настройка cisco anyconnect vpn linux

Documentation

Man Pages

There are several man pages available for the programs, utilities, and configuration files dealing with pacman.

  • alpm-hooks(5)
  • BUILDINFO(5)
  • PKGBUILD(5)
  • libalpm(3)
  • makepkg(8)
  • makepkg-template(1)
  • makepkg.conf(5)
  • pacman(8)
  • pacman-key(8)
  • pacman-conf(8)
  • pacman.conf(5)
  • repo-add(8)
  • vercmp(8)

Changelog

For a good idea of what is going on in pacman development, take a look at the Git summary page for the project.

See the most recent NEWS file for a not-as-frequently-updated list of changes. However, this should contain the biggest changes in a format more concise than the commit log.

Источник

Pacman Commands Cheat Sheet for Arch Linux

One uniqueness or key identifier of different Linux distributions is in the package manager they use to update, install, configure, and uninstall various targeted software packages. In Arch Linux, the package manager is called Pacman.

This tutorial seeks to walk you through some commonly used and unique Pacman commands that will make your Arch Linux interaction and experience easier and much more memorable.

It is highly advisable to be a root user or have Sudoer user privileges on your Arch Linux system to fully benefit from what the Pacman command has to offer.

Updating and Upgrading Arch Linux

If you only want to update the software database of your Arch Linux system, go with the following command:

Update Arch Linux

To update and upgrade your Arch Linux system, go with the following command:

Upgrade Arch Linux

Install Package(s) in Arch Linux

If you have a specific package called an apache web server in mind that you wish to install, it is advisable to first search for the availability of the package. This step is useful because some Linux OS distributions identify common packages differently.

Читайте также:  Установка flash usb linux

Search for Package in Arch Linux

To install an identified package, adhere to the following command:

Supposing you have a local package or one that you have downloaded from a website and wish to install it, you need to adhere to the following command.

$ sudo pacman -U /path/to/your/installable/package

For all repo-based packages re-installation (during emergencies), implement the following command.

$ sudo pacman -Qnq | pacman -S -

Remove Package(s) in Arch Linux

To remove or uninstall a specific Arch Linux installed package, adhere to the following command.

$ sudo pacman -R name_of_package

To remove or uninstall an Arch Linux package together with its dependencies not tied to other active packages, reference the following command syntax:

$ sudo pacman -Rs name_of_package

To uninstall a specific Arch Linux package, remove its global configuration, and avoid its orphaned dependencies, use the following command syntax.

$ sudo pacman -Rns name_of_package

Query Package(s) in Arch Linux

You might wish to retrieve some information about an installed package. The command syntax to use is as follows:

$ pacman -Qi name_of_package

For the apache package we installed earlier, we can get the following info about it:

We can also query about an installable package and its associated dependencies via the command syntax:

$ sudo pacman -Sii name_of_package

To list installed packages, execute the command:

List Installed Packages in Arch Linux

Arch Linux Pacman Cheat Sheet

Following are the list of commonly used commands for the Pacman package manager in Arch Linux.

Command Description
sudo pacman -Syy Update package list
sudo pacman -Syu Update and upgrade all
sudo pacman -S pkgname Install specific package
sudo pacman -Ss keyword Find available packages
sudo pacman -Qs keyword Find available local packages
sudo pacman -Ql pkgname List all files from a package
Sudo pacman -Rsc pkgname Uninstall a package
sudo pacman -Qii pkgname List information on package
Читайте также:  Таблица экспорта so linux

With the Pacman command cheat sheet, you should be comfortable enough to take your Arch Linux OS experience to the next level.

Источник

Оцените статью
Adblock
detector