You are not logged in.

#1 2014-07-21 06:02:27

Salkay
Member
Registered: 2014-05-22
Posts: 618

[SOLVED] How do meta packages work?

A little while ago, I installed the Infinality repository, by adding the following to /etc/pacman.conf.

[infinality-bundle]
Server = http://bohoomil.com/repo/$arch
[infinality-bundle-multilib]
Server = http://bohoomil.com/repo/multilib/$arch
[infinality-bundle-fonts]
Server = http://bohoomil.com/repo/fonts

Then installing the packages.

sudo pacman -S infinality-bundle
sudo pacman -S infinality-bundle-multilib
sudo pacman -S ibfonts-meta-base
sudo pacman -S ibfonts-meta-extended

Recently, kalu told me "7 packages not found in AUR". These were otf-melthofonts-ib ttf-ipafont-ib ttf-lklug-ib ttf-mph-2b-damase-ib ttf-nanum-fonts-ib ttf-tharlon-ib ttf-wqy-microhei-ib. (I presume it meant to say "custom repositories" rather than AUR.) Checking /var/log/pacman.log, I can see that these packages were initially installed after running `sudo pacman -S ibfonts-meta-extended`.

I checked the current repositories for the first two packages, and they appeared to have been removed, although similarly-names packages were available as
otf-melthofonts-ibx ttf-ipafont-ibx (note the last character). I manually uninstalled all these packages, and ran the four lines of installation again, and kalu stopped complaining. (FWIW these new *-ibx packages were not installed.)

My understanding is that meta packages will automatically keep member packages in sync, by installing new members. Will pacman not also automatically remove these "missing" packages? It's too late now, but should I have uninstalled orphan packages instead of manually uninstalling these?

Last edited by Salkay (2014-08-03 06:58:56)

Offline

#2 2014-07-21 10:34:16

Awebb
Member
Registered: 2010-05-06
Posts: 6,275

Re: [SOLVED] How do meta packages work?

Meta packages are packages without content and depend on the actual packages. If another dependency is added to the dependency array of the PKGBUILD of the meta package, then updating the meta package will install the new dependencies. Uninstalling the meta package will uninstall all of its dependencies, that are not marked as explicitly installed. Updating a package does not uninstall dependencies, which dropped out of the meta package. You should look for orphans from time to time.

Offline

#3 2014-07-21 10:38:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] How do meta packages work?

I think unless package foo replaces package bar, this won't happen automatically.

Offline

#4 2014-07-21 13:25:04

Awebb
Member
Registered: 2010-05-06
Posts: 6,275

Re: [SOLVED] How do meta packages work?

I just tested it, created a metapacke with three deps, installed it, updated the package version, removed one dep, installed it. The removed dep was still on the system, orphaned according to -Qdt. This reminds me of upgrade and dist-upgrade on Debian. Should pacman get a switch for that?

Offline

#5 2014-07-21 14:09:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] How do meta packages work?

Check if there's a task opened for such orphans.

Offline

#6 2014-07-21 15:32:38

Awebb
Member
Registered: 2010-05-06
Posts: 6,275

Re: [SOLVED] How do meta packages work?

There already is a feature request on the tracker (FS#5974). It is ancient, has more or less recent comments and is assigned to everybody but the current pacman maintainer.

@OP: Your turn. Go to the appropriate mailing list and inform them about the circumstance.

Last edited by Awebb (2014-07-21 15:33:49)

Offline

#7 2014-07-22 00:42:06

Salkay
Member
Registered: 2014-05-22
Posts: 618

Re: [SOLVED] How do meta packages work?

Thanks for the answer, Awebb and karol. I do try and remove orphans regularly, but it does make sense for this specific function to be rolled into the normal meta-package upgrade command. I've posted on the tracker (is that what you meant?).

Offline

#8 2014-07-22 09:55:10

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: [SOLVED] How do meta packages work?

Awebb wrote:

I just tested it, created a metapacke with three deps, installed it, updated the package version, removed one dep, installed it. The removed dep was still on the system, orphaned according to -Qdt. This reminds me of upgrade and dist-upgrade on Debian. Should pacman get a switch for that?

# pacman -Rns $(pacman -Qdtq)

https://wiki.archlinux.org/index.php/Pa … d_packages

Offline

#9 2014-07-22 10:23:05

Salkay
Member
Registered: 2014-05-22
Posts: 618

Re: [SOLVED] How do meta packages work?

Head_on_a_Stick, that's what I was referring to in the OP.

Salkay wrote:

Will pacman not also automatically remove these "missing" packages? It's too late now, but should I have uninstalled orphan packages instead of manually uninstalling these?

Offline

#10 2014-07-22 10:44:11

Awebb
Member
Registered: 2010-05-06
Posts: 6,275

Re: [SOLVED] How do meta packages work?

Yes, we are discussing, whether this should by automated in a special case or whether pacman should inform us at least.

Offline

#11 2014-07-22 10:53:04

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: [SOLVED] How do meta packages work?

^ oh, sorry... hmm

Offline

Board footer

Powered by FluxBB