Basic Pacman usage

Source: Internet
Author: User
Pacman-sy ABC # Install the package named ABC after source Synchronization

Pacman-s ABC # obtain ABC information from the local database and download and install the ABC Package
Pacman-sf abc # force installation package ABC
Pacman-ss abc # search for packages related to ABC Information
Pacman-Si ABC # search for ABC information from the database
Pacman-Qi ABC # list detailed information about the Installed Package ABC
Pacman-syu # synchronize the source and update the system
Pacman-sy # synchronization source only
Pacman-su # update the system
Pacman-r ABC # delete an ABC Package
Pacman-rc abc # Delete the ABC Package and the package dependent on ABC
Pacman-rsc abc # Delete packages dependent on ABC and ABC
Pacman-SC # Clear old packages in the/var/Cache/Pacman/PKG directory
Pacman-SCC # Clear all downloaded packages and databases
Pacman-u ABC # Install the downloaded ABS package or the newly compiled ABC Package
Pacman-sd abc # ignore dependency problem, installation package ABC
Pacman-su -- ignore Foo # Do not upgrade the foo package during upgrade
Pacman-sg abc # query the packages included in the ABC Package Group
Install and delete packages

Before installing and upgrading a software package, it is a good habit to synchronize the local package database with a remote software repository.
  Pacman-syu
Or
  Pacman -- Sync -- refresh
To install or upgrade a single software package or a column of software packages (including dependency packages), run the following command:
  Pacman-s package_name1 package_name2
Sometimes in different software repositories, a software package has multiple versions (such as extra and testing ). You can choose one to install:
  Pacman-s extra/package_name
Pacman-s testing/package_name

You can also synchronize the database package in a command and install a software package:
  Pacman-sy package_name
Delete a software package and keep all installed Dependencies
  Pacman-r package_name
Delete the specified software package and all dependencies that are not used by other installed software packages:
  Pacman-Rs package_name
  

Upgrade System

  PacmanOnly one command can be used to upgrade all installed packages in the system. The upgrade time depends on how new your system is.
  Pacman-su
Of course, the best practice is to combine the upgraded system and synchronized warehouse data into a command:
  Pacman-syu
  

Query the package Database

  PacmanYou can use the-Q flag to search for and query the local package database. See
  Pacman-Q -- Help
Or more detailed Pacman (8) manpage. Synchronous databases can be searched and queried using the-s mark. Or see the manpage or
  Pacman-s -- Help
View Details.
  

Other usage

  PacmanIt is a very extensive package management tool. Here it is just some of its other main features.
Download the package without installing it:
  Pacman-SW package_name
Install a local package (not from the source ):
  Pacman-U/path/to/package/package_name-version.pkg.tar.gz
Clear the package cache completely (/var/Cache/Pacman/PKG ):
  Pacman-SCC
Reinstall the installation package (packages that cannot be deleted due to dependency issues ):
  Pacman-SF package_name
To learn more about the parameter switch, you can use Pacman -- help or man Pacman.

I always wanted to learn about the arch release, but because of the Optimus feature of my computer, the desktop system cannot be installed normally, and it needs to be carried out by a third-party Bumblebee. Fortunately, it has updated version 3.0 recently and plans to chew on arch again recently. In the hope of success, we hope to collect some information first.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.