You are not logged in.

#1 2020-04-21 03:03:15

InvisibleRasta
Member
Registered: 2017-04-12
Posts: 122

pacman reporting alot of orphaned packages

hello guys, i just ran a sudo pacman -Rsn $(sudo pacman -Qdtq) to see if i had any orphaned packages and i am getting a bunch of entries that i do not understand why they are there

checking dependencies...
:: avahi optionally requires libevent: libevent bindings
:: avahi optionally requires python-gobject: avahi-bookmarks, avahi-discover
:: avahi optionally requires python-dbus: avahi-bookmarks, avahi-discover
:: brltty optionally requires libxaw: X11 support
:: groff optionally requires libxaw: for gxditview
:: imagemagick optionally requires libwmf: WMF support
:: libpeas optionally requires python-gobject: Python loader
:: oh-my-zsh-git optionally requires ruby: for some plugin functionality
:: python-pandas optionally requires python-lxml: needed for read_html function (and/or python-html5lib)
:: python2 optionally requires python2-setuptools
:: vlc optionally requires libmtp: MTP devices discovery
:: wine-lol optionally requires lib32-sdl2
:: xarchiver optionally requires p7zip: 7z support
:: xmms2 optionally requires ruby: Ruby bindings
:: zoom optionally requires qt5-webengine: SSO login support
warning: dependency cycle detected:
warning: ruby-irb will be removed after its ruby dependency
warning: dependency cycle detected:
warning: ruby-reline will be removed after its ruby dependency
warning: dependency cycle detected:
warning: rubygems will be removed after its ruby dependency

Packages (158) augeas-1.12.0-1  boost-libs-1.72.0-1  cabextract-1.9.1-1  calibre-common-4.13.0-1  ceph-libs-14.2.8-1  chmlib-0.40-5  docbook-xml-4.5-8
               docbook-xsl-1.79.2-5  faudio-20.04-1  glusterfs-1:7.4-1  gnome-desktop-1:3.36.1-1  gsfonts-20180524-2  gtk-vnc-1.0.0-1  gtkd-3.9.0-6
               gtksourceview4-4.6.0-1  jasper-2.0.16-1  jxrlib-0.2.1-3  lib32-faudio-20.04-1  lib32-libxt-1.2.0-1  lib32-sdl2-2.0.12-1
               libdbusmenu-qt5-0.9.3+16.04.20160218-4  libevent-2.1.11-5  libimagequant-2.12.6-1  libiscsi-1.19.0-1  liblphobos-2:1.20.1-3
               libmng-2.0.3-2  libmtp-1.1.17-1  libosinfo-1.7.1-1  libratbag-0.13-2  libspiro-1:20190731-1  libuninameslist-20190701-1
               libunrar-1:5.9.2-1  liburcu-0.11.0-1  libvirt-5.10.0-3  libvirt-glib-3.0.0-1  libvirt-python-5.8.0-3  libwmf-0.2.12-1  libxaw-1.0.13-2
               mathjax2-2.7.8-1  minizip-1:1.2.11-4  netcf-0.2.8-7  ninja-1.10.0-1  oath-toolkit-2.6.2-7  optipng-0.7.7-1  osinfo-db-20200214-1
               p7zip-16.02-5  phodav-2.4-1  podofo-0.9.6-2  potrace-1.16-1  python-cairo-1.19.1-1  python-dbus-1.2.16-1  python-dbus-common-1.2.16-1
               python-distro-1.4.0-3  python-evdev-1.3.0-1  python-gobject-3.36.0-2  python-lxml-4.5.0-1  python-pillow-6.2.1-1
               python-sphinxcontrib-devhelp-1.0.2-1  python-sphinxcontrib-htmlhelp-1.0.3-1  python-sphinxcontrib-jsmath-1.0.1-4
               python-sphinxcontrib-qthelp-1.0.3-1  python-sphinxcontrib-serializinghtml-1.1.4-1  python-yaml-5.3.1-1  python2-appdirs-1.4.3-5
               python2-apsw-3.31.1-1  python2-backports-1.0-2  python2-backports.functools_lru_cache-1.6.1-1  python2-beautifulsoup4-4.8.2-1
               python2-chardet-3.0.4-4  python2-css-parser-1.0.4-3  python2-cssselect-1.1.0-3  python2-dateutil-2.8.1-3  python2-dbus-1.2.16-1
               python2-dnspython-1.16.0-3  python2-enum34-1.1.9-1  python2-feedparser-5.2.1-5  python2-html2text-2019.8.11-4
               python2-html5-parser-0.4.9-2  python2-html5lib-1.0.1-7  python2-lxml-4.5.0-1  python2-markdown-3.1.1-4  python2-mechanize-1:0.4.5-1
               python2-msgpack-0.6.2-3  python2-netifaces-0.10.9-3  python2-ordered-set-3.1.1-1  python2-packaging-20.3-1  python2-pillow-6.2.1-1
               python2-psutil-5.7.0-1  python2-pychm-0.8.6-1  python2-pygments-2.5.2-2  python2-pyparsing-2.4.7-1  python2-pyqt5-5.14.2-1
               python2-pyqtwebengine-5.14.0-3  python2-regex-2020.4.4-1  python2-setuptools-2:44.1.0-1  python2-sip-pyqt5-4.19.22-1
               python2-six-1.14.0-1  python2-soupsieve-1.9.5-2  python2-unrardll-0.1.4-2  python2-webencodings-0.5.1-4  qt5-imageformats-5.14.2-1
               qt5-location-5.14.2-1  qt5-webchannel-5.14.2-1  qt5-webengine-5.14.2-1  re2-1:20200401-1  rpcbind-1.2.5-3  ruby-2.7.1-2
               ruby-diff-lcs-1.3-4  ruby-irb-1.2.1-1  ruby-manpages-0.6.1-3  ruby-optimist-3.0.0-2  ruby-paint-2.1.0-2  ruby-rainbow-3.0.0-5
               ruby-rdoc-6.2.0-2  ruby-reline-0.0.7-2  ruby-rspec-3.8.0-3  ruby-rspec-core-3.8.0-3  ruby-rspec-expectations-3.8.1-3
               ruby-rspec-mocks-3.8.0-3  ruby-rspec-support-3.8.0-3  ruby-term-ansicolor-1.6.0-3  ruby-tins-1.16.3-3  rubygems-3.1.2-4
               spice-gtk-0.37-1  vim-runtime-8.2.0510-1  virt-install-2.2.1-2  wine-5.5-1  xmlsec-1.2.29-1  xorg-xmessage-1.0.5-1  xxhash-0.7.3-1
               asciidoc-8.6.10-1  banner-1.3.2-8  calibre-4.13.0-1  check-0.14.0-1  cmatrix-2.0-1  cowsay-3.04-1  fontforge-20200314-2  go-2:1.14.2-1
               gpick-0.2.6rc1-7  iniparser-4.1-1  lib32-libxmu-1.1.3-1  lolcat-100.0.0-2  lutris-0.5.6-2  meson-0.54.0-2  neofetch-7.0.0-1
               opencl-headers-2:2.2.20170516-2  perl-parse-yapp-1.21-2  piper-0.4-1  python-sphinx-3.0.1-1  python-sphinx_rtd_theme-0.4.3-4
               swig-4.0.1-2  telegram-desktop-2.0.1-1  tilix-1.9.3-7  valgrind-3.15.0-1  vim-8.2.0510-1  virt-manager-2.2.1-2
               whatsapp-nativefier-dark-0.20200327232900-1  winetricks-20200412-1

Total Removed Size:  2370.69 MiB

:: Do you want to remove these packages? [Y/n] n

Offline

#2 2020-04-21 04:32:33

jonno2002
Member
Registered: 2016-11-21
Posts: 907

Re: pacman reporting alot of orphaned packages

pacman is telling you that some of the packages you are removing are optionally required by other installed packages, so you need to determine whether you need the functionality they provide to that package.

the 'warning' part is just telling you that pacman will remove a package after its dependency, 'ruby' will be removed before the packages that depend on it.

and the last part is telling you all the packages that will be removed as they were installed as a dependency of another package which is no longer installed.

EDIT: come to think of it pacman shouldnt be removing optional depends without a double t (-Qttdq) , just tried it and unless i include the second 't' pacman does NOT offer to remove optional depends, someone who knows more than me can possibly explain whats going on.

Last edited by jonno2002 (2020-04-21 04:50:33)

Offline

#3 2020-04-21 11:57:51

InvisibleRasta
Member
Registered: 2017-04-12
Posts: 122

Re: pacman reporting alot of orphaned packages

i am not sure on what to actually do, or even if i have to jsut never run that command

Offline

#4 2020-04-21 14:02:32

dakota
Member
Registered: 2016-05-20
Posts: 417

Re: pacman reporting alot of orphaned packages

InvisibleRasta wrote:

i am not sure on what to actually do

you need to determine whether you need the functionality they provide to that package.

If you don't want the packages, then remove them. Why did you install them in the first place? How did you install them in the first place?


"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb

Offline

#5 2020-04-21 14:05:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,520
Website

Re: pacman reporting alot of orphaned packages

jonno2002 wrote:

EDIT: come to think of it pacman shouldnt be removing optional depends without a double t (-Qttdq) , just tried it and unless i include the second 't' pacman does NOT offer to remove optional depends, someone who knows more than me can possibly explain whats going on.

Agreed.  We saw this once before recently here.  Unfortunately, that user nuked everything before we had time to figure out what was going on.

Invisible Rasta, please post the output of just `pacman -Qdtq`.  I suspect the problem is the -s flag for the removal.  Those of us who keep tidy systems would never see this, but when there are a lot of orphans, it's much more likely that their dependencies may be optional for other packages.

If this is the case, using that command as-is is probably a bad idea.  Instead just `pacman -Qdtq | pacman -Rn` a few times until nothing is removed.

Last edited by Trilby (2020-04-21 14:08:42)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2020-04-21 17:04:33

InvisibleRasta
Member
Registered: 2017-04-12
Posts: 122

Re: pacman reporting alot of orphaned packages

i have jsut notused that every single package i install with pacman -S it is not installed as explicit.. not sure why

Offline

#7 2020-04-21 17:07:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,520
Website

Re: pacman reporting alot of orphaned packages

Please post actual output.

If you mean you are just using `pacman -S $package` to "reinstall" a package already installed as a dependency, that is not expected to mark it as explicitly installed.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB