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
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
We can install a new package if it wasn't installed with
pacman -S firefox
. That is not a partial upgrade of the system. Right? What i don't understand is, when I uninstall withpacman -Rs firefox
, delete the cached firefox package (only that file), then the system is in the same state as before I installed it. Then-S firefox
should be okay, right? And it even looks up the new version. This is my question, if that would work correctly.IF no dependency tries to update too. Off course in that case I would stop. Without
pacman -Sy
, I never do that anyway, only-Syu
.To add to the other comment, package managers keep a local copy of the list of available packages and the version. When you do a
pacman -S xxx
the package manager looks up xxx in the cache and downloads the package from whatever mirror youre using as well as any dependencies, looking them up in the same way from your cache. This works for a while even if theres a new update available because mirrors usually keep a few previous versions.Once you do a
pacman -Sy
you update your cache to the latest one. If you then update xxx, it will update xxx and pull in any dependency updates required, but any other packages that depended on the same packages dont get updated, leaving you in a partially upgraded state.That's all you need to know. As long as you always use
pacman -Syu
you will be fine.pacman -Sy
is the real problem. The wiki page is pretty clear about the sequences of commands that are problematic https://wiki.archlinux.org/title/System_maintenance#Partial_upgrades_are_unsupported.This isn't correct. It won't look up the new version. Assuming that the system was in a consistent state it will download the exact same package that you deleted. The system only ever "updates" when you run
pacman -Sy
. Until you use-y
all packages are effectively pinned at a specific version. If the version that gets installed is different than the one you removed it probably means that you were breaking the partial update rule previously.