To query the database to know which package a file in the file system belongs to: Passing the k flag twice will perform a more thorough check. To verify the presence of the files installed by a package: To retrieve a list of the files installed by a remote package: To retrieve a list of the files installed by a package: Passing two -i flags will also display the list of backup files and their modification states: To display extensive information about a given package: To search for package file names in remote packages: To search for already installed packages: Sometimes, -s's builtin ERE (Extended Regular Expressions) can cause a lot of unwanted results, so it has to be limited to match the package name only not the description nor any other field: Pacman can search for packages in the database, searching both in packages' names and descriptions: See pacman -Q -help, pacman -S -help and pacman -F -help for the respective suboptions of each flag. Pacman queries the local package database with the -Q flag, the sync database with the -S flag and the files database with the -F flag. The following command synchronizes the repository databases and updates the system's packages, excluding "local" packages that are not in the configured repositories: This could take quite a while depending on how up-to-date the system is. Pacman can update all packages on the system with just one command. See System maintenance#Partial upgrades are unsupported and #Installing packages for details. Arch only supports full system upgrades.Users are expected to follow the guidance in the System maintenance#Upgrading the system section to upgrade their systems regularly and not blindly run the following command.To see what packages belong to the gnome group, run:Īlso visit to see what package groups are available. Which will select all packages except 5 through 8 and 2 for installation. Which will select packages 1 through 10 and 15 for installation, or: Instead of having to enter all the numbers except the ones you do not want, it is sometimes more convenient to select or exclude packages or ranges of packages with the following syntax: Sometimes a package group will contain a large amount of packages, and there may be only a few that you do or do not want to install. Will prompt you to select the packages from the gnome group that you wish to install. Some packages belong to a group of packages that can all be installed simultaneously. Tip: When there are multiple candidates, the list of choices presented will sort first by repositories in the order they appear in nf, then alphabetically when multiple results exist from the same repository. Virtual packages cannot be installed by their name, instead they become installed in your system when you have installed a package providing the virtual package. Virtual packages allow other packages to not name a specific package as a dependency, in case there are several candidates. # pacman -S plasma-Ī virtual package is a special package which does not exist by itself, but is provided by one or more other packages. To install a number of packages sharing similar patterns in their names, one can use curly brace expansion. To install the version from the extra repository in this example, the repository needs to be defined in front of the package name: Sometimes there are multiple versions of a package in different repositories (e.g. To install a list of packages with regex (see this forum thread): To install a single package or list of packages, including dependencies, issue the following command: See System maintenance#Partial upgrades are unsupported and BBS#89328. In practice, do not run pacman -Sy package_name instead of pacman -Sy u package_name, as this could lead to dependency issues. Warning: When installing packages in Arch, avoid refreshing the package list without upgrading the system (for example, when a package is no longer found in the official repositories).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |