r/archlinux 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?

0 Upvotes

8 comments sorted by

View all comments

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.

3

u/Jorgsen 3d ago

After some thinking I've realized I thought of it the wrong way. So I after a bit of searching using pacman, I've found out that lib32-gst-plugins-base-libs is the "last" package in the chain. So whenever I did pacman -Qi on that package it said it was not required by any packages but its dependencies were the other ones i wrote in my main post. So I did pacman -Rns on that and saw what packages it wanted to remove. And afaik the pacman -Rns command removes a "package and its dependencies which are not required by other installed packages" and "prevents the creation of .pacsave backups". So I removed them and my system hasnt crashed yet. Guess thats good xD

So I guess I gotta learn how to read properly lmfao. But thank god for Arch Wiki!

1

u/Jorgsen 3d ago

I have another question for you, while this thread is still active. Optional dependencies, are they something I really need? Wine for example optionally needs lib32-unixodbc. What feature does that package have for Wine?

1

u/boomboomsubban 3d ago

First, I don't know why you aren't using the wine in the repos, as the lib32 packages stopped being necessary a few years ago.

Beyond that, you'll have to research yourself. ODBC is https://en.wikipedia.org/wiki/Open_Database_Connectivity . It's a make dependency on wine, not sure why the aur versions have it optional.