In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use Pacman command in ArchLinux, the article is very detailed, has a certain reference value, interested friends must read it!
Pacman is a package manager that is part of the ArchLinux distribution. In short, just like apt-get for Ubuntu, pacman is Arch apt-get. To play Arch easily, learning pacman is a must.
environment
Archlinux 2020.04
Install packages using pacman
Pacman can be used to install one or more packages simultaneously
root@archlinux> pacman -S --noconfirm apache
S: Install the application. --noconfirm: Automatically confirm installation during installation.
remove a package
Delete packages without deleting dependent packages:
root@archlinux> pacman -R --noconfirm apache
Delete packages and remove dependencies:
root@archlinux> pacman -Rs apache-noconfirm upgrade package
Pacman provides an easy way to update Arch Linux. You can update all installed packages with a single command. This may take a while, depending on how updated the system is.
Using the-Syu option, you can update all installed packages.
root@archlinux> pacman -Syu Search Packages
To search for locally installed packages, use the-Q option:
#List all packages root@archlinux> pacman -Qacl 2.2.53-2archlinux-keyring 20200422-1argon2 20190702-2attr 2.4.48-2audit 2.8.5-6base 2-2bash 5.0.016-1bash-completion 2.10-1bzip2 1.0.8-3ca-certificates 20181109-3...#Search for packages with specified names root@archlinux> pacman -Qs openssh ~local/openssh 8.2p1-3 Premier connectivity tool for remote login with the SSH protocol
To query whether there is an installation package in the network source, you can use the-Ss option:
root@archlinux> pacman -Ss Gnome-Desktop /usr/binextra/gnome-desktop 1:3.36.2-1 Library with common API for various GNOME modules
Query which installation package a file belongs to:
root@archlinux> pacman -F /usr/bin/vim ~usr/bin/vim is owned by extra/gvim 8.2.0510-2usr/bin/vim is owned by extra/vim 8.2.0510-2root@archlinux> pacman -F /usr/bin/ifconfig ~usr/bin/ifconfig is owned by core/net-tools 1.60.20181103git-2
To query which files a package contains, use the-Ql option:
archlinux# pacman -Ql net-toolsnet-tools /usr/net-tools /usr/bin/net-tools /usr/bin/arpnet-tools /usr/bin/ifconfignet-tools /usr/bin/ipmaddrnet-tools /usr/bin/iptunnelnet-tools /usr/bin/mii-toolnet-tools /usr/bin/nameifnet-tools /usr/bin/netstatnet-tools /usr/bin/plipconfignet-tools /usr/bin/rarpnet-tools /usr/bin/routenet-tools /usr/bin/slattach…
To see which packages the package depends on, use pactree. Pacman-contib package needs to be installed, use pactree to display dependent package names in directory tree form:
archlinux# pactree net-toolsnet-tools└─glibc ├─linux-api-headers provides linux-api-headers>=4.10 ├─tzdata └─filesystem ─ iana-etc The above is "How to use Pacman command in ArchiLinux" All the contents of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.