ArchThis Forum is for the discussion of Arch Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
how do I install individual packages?
Hello. I am setting up archbang on an old laptop that does not have internet access (the network card is broken on it). So, rather than using its package manager (pacman?) I'm hoping to download packages on another computer, and then save these to a usb-stick, and then transfer these and install them to this old laptop.
On Debian (which I'm familiar with) you use "dpkg -i" rather than synaptic or aptitude or apt-get. On Vector you use "installpkg" rather than Gslapt. What command do you use on Arch (or ArchBang, if it's different)?
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Original Poster
Rep:
Local disk would be good. On Debian there are disks that one can download, and then add via "apt-cdrom add". It would be good if Arch had a similar option.
pacman -Syu # Synchronize with repositories before upgrading packages that are out of date on the local system.
pacman -S # Install specific package(s) from the repositories
pacman -U # Install specific package not from the repositories but from a file
pacman -Sw # Download a package without installing it
pacman -R # Remove the specified package(s), retaining its configuration(s)and required dependencies
pacman -Rns # Remove the specified package(s), its configuration(s)and unneeded dependencies
pacman -Si # Display information about a given package in the repositories
pacman -Ss # Search for package(s) in the repositories
pacman -Qi # Display information about a given package in the local database
pacman -Qii # Also display the list of backup files and their modification states
pacman -Qs # Search for package(s) in the local database
pacman -Ql # Retrieve a list of the files installed by a package
pacman -Qdt # Show list of packages that are no longer needed
pacman -Qm # Show packages not in repo
pacman -Qo # Query the package which provides FILE
pacman -Sc # clears package cache of uninstalled packages
pacman -Scc # clear the package cache of all packages
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.