this post was submitted on 01 Oct 2025
23 points (87.1% liked)

Linux

58675 readers
543 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

On Archlinux it is not recommended to update only one package with the package manager pacman. Let's say I have 11 packages, and one of them is extra/firefox (true story). Updating only a pacman -S firefox could introduce problems, but installing a new single package if it wasn't there is okay.

So my question is, could we get around this by removing and installing the same package again in one go: pacman -Rs firefox && pacman -S firefox

you are viewing a single comment's thread
view the rest of the comments
[–] Strit@lemmy.linuxuserspace.show 0 points 1 day ago (1 children)

No, pacman -S package is safe. Because the package list is not updated this way, and therefore the system is not updated and nothing else is affected. New packages can be installed with this command, perfectly okay. That is in the spirit of Archlinux.

If the package is not in your cache, it needs to download it from the remote server first. The version on the remote server is built against the dependencies on the remote server. So if your local dependency is older, it will be a partial update!

[–] thingsiplay@beehaw.org 1 points 1 day ago (1 children)

No, because pacman -S will use the current package list.

[–] Strit@lemmy.linuxuserspace.show 2 points 1 day ago (2 children)

And where does it download the newly installed package from? It's not in your cache, because you haven't had it installed before and the remote server only has the newest version.

[–] Markaos@discuss.tchncs.de 2 points 1 day ago

The download will simply fail if the version pacman wants to download isn't available on the mirror. The version is part of the download URL.

[–] thingsiplay@beehaw.org 1 points 1 day ago

I guess that's the key takeaway for me from this post and replies.