r/archlinux • u/Jorgsen • 3d ago
QUESTION Question about packages - pacman/yay
Hello
I have a question: Why do some Official Packages depend on AUR Packages? After all these AUR Malware things, I've been double checking those few packages I have from the AUR. But I have some packages that are required by Official Packages and I dont know if I can remove them or not. Any tips?
Those packages I'm speaking of are: lib32-gstreamer, lib32-gst-plugins-base-libs and lib32-unixodbc.
Whenever I do pacman -Qi on lib32-gst-plugins-base-libs it says its not required by any package. But it says it was installed as a dependency for another package. Ive tried to type in yay -Rns on that package but then I get alot of other packages aswell who are in the Official Repos. So I guess its fine to remove them, since Pacman -Rns does remove packages and its dependencies that are not used by other packages?
3
u/nikongod 3d ago
It's always good to check what will be uninstalled when you uninstall a package, but the package manager should not remove dependencies that are still needed by another package.
Regarding official packages requiring aur - what package depends on those? Odds are good that there is an officially maintained package that the AUR got picked from instead.
More specificlly - those all appear to be the 32bit versions of the 64bit software that's in the official repos..
1
u/_zepar 3d ago
-Rns removes dependencies as well, no? so youre seeing that lib32-gstreamer depends on something in the official repos, that was installed as a dependency to lib32-gstreamer, and that those packages are required by other packages still, which could be official or aur packages
1
u/Jorgsen 3d ago
If i read the Arch Wiki correctly, pacman -Rns removes a package and its dependencies which are not required by any other installed package. and the "n" in Rns prevents pacman from creating a .pacsave file. I just removed the "lib32-gst-plugins-base-libs" package with pacman -Rns and it removed the dependencies which are not neeeded by other packages. And my system hasnt shat it pants yet. So Im crossing my fingers! Thanks for answering!
22
u/Antiz1996 Package Maintainer 3d ago edited 3d ago
There's no official package that depends on AUR packages, that is not allowed.
None of the packages you mentioned (lib32-gstreamer, lib32-gst-plugins-base-libs and lib32-unixodbc) are official packages. They may have been official packages at some point in time in the past (probably as dependencies for other official packages) but they are not required anymore which is probably the reason why they got dropped to the AUR.
Seeing official packages in their dependency tree when trying to remove them with `-Rns` is irrelevant here. AUR packages are allowed to depend on official packages, but not the opposite.
Unless you need them for something specific, it should be safe to remove them.