25
submitted 2 months ago by thingsiplay@beehaw.org to c/linux@lemmy.ml

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
[-] pitiable_sandwich540@feddit.org 1 points 2 months ago

And it even looks up the new version. This is my question, if that would work correctly.

I think this is where you might have misunderstood what pacman -S does. It does not look for a new version, but tries to install the version of the package from last time you updated your local package list.

If the repository has a newer version since the last time you updated, you would not find the package version you are looking for. As I try to update at least once a day, I haven't had this happen yet (so i am not 100% how this would manifest).

To install only the newest version of firefox on the server you would habe to run it with pacman-Sy firefox which is not supported.

this post was submitted on 01 Oct 2025
25 points (87.9% liked)

Linux

57274 readers
513 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