You are not logged in.

#1 2015-10-06 07:07:11

jwhendy
Member
Registered: 2010-04-01
Posts: 621

[SOLVED] pacman -Qdt lists a package that is required by another

I googled for similar posts and found some, but the users seemed confused about what `pacman -Qdt` did. I may be in that boat myself, but we'll see!

The two options being passed to query:

$ man pacman

QUERY OPTIONS

-d, --deps
           Restrict or filter output to packages installed as dependencies. This option can be combined with -t for listing real orphans - packages that were installed as dependencies but are no longer
           required by any installed package.

-t, --unrequired
           Restrict or filter output to packages not required or optionally required by any currently installed package. Specify this option twice to only filter packages that are direct dependencies (i.e.
           do not filter optional dependencies).

Information on the farstream package:

$ sudo pacman -Qdt
farstream-0.1 0.1.2-5

$ sudo pacman -Qi farstream

Name           : farstream
Version        : 0.2.7-1
Description    : Farstream (formerly Farsight) - Audio/Video Communications
                 Framework
Architecture   : x86_64
URL            : http://www.freedesktop.org/wiki/Software/Farstream
Licenses       : LGPL
Groups         : None
Provides       : None
Depends On     : gst-plugins-base-libs  libnice
Optional Deps  : gst-plugins-good [installed]
                 gst-plugins-bad
Required By    : libpurple
Optional For   : None
Conflicts With : farsight2
Replaces       : farsight2
Installed Size : 1652.00 KiB
Packager       : Felix Yan <felixonmars@archlinux.org>
Build Date     : Wed 04 Feb 2015 09:53:01 PM CST
Install Date   : Tue 06 Oct 2015 01:53:01 AM CDT
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By   : Signature

So... it's not optional and is listed as a required package. Why might it be showing up with -Qdt? I only noticed it as I do this periodically and clean up packages (usually make depends). Issuing `pacman -Rsc` on this pulled in pidgin and pidgin-sipe (my chat tool for Lync at work), so I became perplexed. I even did a `pacman -Rsc pidgin pidgin-sipe` and `pacman -S pidgin pidgin-sipe` in case it was some oddity with the database (hoping an uninstall/reinstall would cause it's required status to be updated).

Any ideas?

Last edited by jwhendy (2015-10-07 19:17:41)

Offline

#2 2015-10-06 08:42:50

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: [SOLVED] pacman -Qdt lists a package that is required by another

libpurple has recently changed one of its dependencies from farstream-0.1 to farstream (although this change was not performed with a "replaces", so one had to manually uninstall the farstream-0.1 package after the upgrade).

Anyway, since it states libpurple as a reverse dependency, the next thing to do would be to check the output of

pacman -Qi libpurple

pkgshackscfgblag

Offline

#3 2015-10-07 19:17:27

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: [SOLVED] pacman -Qdt lists a package that is required by another

@ayekat: you nailed it. Never would have figured that out! Indeed:

]$ sudo pacman -Qi libpurple

Name           : libpurple
Version        : 2.10.11-4
...
Depends On     : farstream  libsasl  libidn  libgadu  dbus-glib  nss
Optional Deps  : avahi: Bonjour protocol support [installed]
                 ca-certificates: SSL CA certificates [installed]
                 python2-dbus: for purple-remote and purple-url-handler
                 [installed]
                 tk: Tcl/Tk scripting support
Required By    : pidgin  pidgin-sipe
...

I definitely missed the -0.1 at the end of the initial package. Thanks for the quick help.

Out of curiosity, was this announced somewhere? I looked at my pacman log and see the installation of farstream-0.1 back in July (around when I got this computer) and farstream on Oct 05 2015, but no message from pacman about replacement. Just wondering how one catches these sorts of manual-action-required sorts of things.

Thanks again!

Offline

#4 2015-10-07 20:14:28

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: [SOLVED] pacman -Qdt lists a package that is required by another

jwhendy wrote:

Just wondering how one catches these sorts of manual-action-required sorts of things.

Usually pacman prints a message at the end of an upgrade process if there are packages that are no longer required by any other package.

However, I find it a little weird that farstream-0.1 states that it's required by libpurple, whereas libpurple doesn't list it among its dependencies... unless you ran pacman -Sy at some point¹, it may require someone more experienced to explain this.

____
¹ And even in that case, I think this is weird.

Last edited by ayekat (2015-10-07 20:15:55)


pkgshackscfgblag

Offline

#5 2015-10-07 20:18:15

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: [SOLVED] pacman -Qdt lists a package that is required by another

No problem. Just wondering if it was something obvious that I missed. I generally don't do that, and always run `pacman -Syu`. If I did, it escapes me and don't know why I would have done so! I'm thinking if I did, it seems like it still would have caught it the next time I upgraded?

Offline

#6 2015-10-07 20:31:47

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] pacman -Qdt lists a package that is required by another

ayekat wrote:

However, I find it a little weird that farstream-0.1 states that it's required by libpurple

The `pacman -Qi` output in the OP wasn't for farstream-0.1, it was for the newer farstream, because

jwhendy wrote:

I definitely missed the -0.1 at the end of the initial package.

So the `pacman -Qdt` output was correct and in the end it helped to get rid of the farstream-0.1 package that was superseded by the farstream package.

The farstream-0.1 package is still "optional for" gajim which can explain why the "replaces" option wasn't used.

Offline

#7 2015-10-07 20:33:31

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: [SOLVED] pacman -Qdt lists a package that is required by another

Oh, I see now. *facepalm*
Mystery resolved.


pkgshackscfgblag

Offline

#8 2015-10-07 20:40:28

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: [SOLVED] pacman -Qdt lists a package that is required by another

@Raynman: and the replaces option isn't used if it's optional for any other package, even if it's not installed? I don't have gajim, and just re-installed farstream-0.1:

$ sudo pacman -Qi farstream-0.1
Name           : farstream-0.1
Version        : 0.1.2-5
Description    : Audio/Video Communications Framework (legacy version)
Architecture   : x86_64
URL            : http://www.freedesktop.org/wiki/Software/Farstream
Licenses       : LGPL2.1
Groups         : None
Provides       : None
Depends On     : libnice  gstreamer0.10-base  gstreamer0.10-bad-plugins
                 gstreamer0.10-good-plugins  gstreamer0.10-ffmpeg
Optional Deps  : None
Required By    : None
Optional For   : None
Conflicts With : None
Replaces       : None

I definitely get why I had the initial confusion (farstream-0.1 really was and an orphan in my case (listed with -Qdt), but I was looking at the -Qi output of farstream). I was just wondering how a user would have known it wasn't required anymore and had been replaced. Maybe the simple answer is running the occasional `pacman -Qdt`!

Offline

Board footer

Powered by FluxBB