You are not logged in.

#1 2012-02-13 08:51:19

Anders H
Member
From: Reno, NV
Registered: 2011-07-31
Posts: 43
Website

[Solved] pacman -Qtdq is returning strange results - Please Help!

Hi guys,

I'm having an issue with the pacman command -

 #pacman -Qtdq 

It has been spitting out some VERY odd results. Here

 [anders@Freki ~]$ pacman -Qtdq
abs
agave
alsa-utils
archlinux-artwork
arj
aspell-en
audacity
autoconf
automake
bacula
banshee
beanshell
bleachbit
bluefish
calibre
cryptsetup
dash
dosfstools
ekiga
expect
fakeroot
feh
file-roller
firefox
flex
gcalctool
gconf-editor
gedit
git
gksu
gnome-color-manager
gnome-disk-utility
gnome-media
gnome-nettool
gnome-power-manager
gnome-utils
gpart
gparted
grub2-bios
gstreamer0.10-bad-plugins
gtk-doc
handbrake
hardinfo
heirloom-mailx
hsqldb-java
hunspell-en
hyphen-en
icedtea-web
initscripts
inkscape
iputils
jfsutils
less
libdvdcss
libmspack
libmythes
libreoffice-base
libreoffice-calc
libreoffice-draw
libreoffice-extension-ct2n
libreoffice-extension-diagram
libreoffice-extension-google-docs
libreoffice-extension-hunart
libreoffice-extension-nlpsolver
libreoffice-extension-numbertext
libreoffice-extension-oooblogger
libreoffice-extension-pdfimport
libreoffice-extension-presentation-minimizer
libreoffice-extension-presenter-screen
libreoffice-extension-report-builder
libreoffice-extension-scripting-beanshell
libreoffice-extension-scripting-javascript
libreoffice-extension-scripting-python
libreoffice-extension-typo
libreoffice-extension-validator
libreoffice-extension-watch-window
libreoffice-extension-wiki-publisher
libreoffice-gnome
libreoffice-impress
libreoffice-math
libreoffice-sdk-doc
libreoffice-writer
libwpg
licenses
lm_sensors
logrotate
lucene
lvm2
man-db
man-pages
mdadm
mesa-demos
mousetweaks
mythes-en
nano
ntfsprogs
openshot
os-prober
pacman
parcellite
patch
pcmciautils
perl-passwd-md5
pkg-config
pstoedit
python2-gtkspell
python2-numpy
rdesktop
reiserfsprogs
samba
skype
skype-call-recorder
sound-juicer
soundconverter
subversion
sudo
syslog-ng
telepathy-butterfly
telepathy-gabble
telepathy-haze
telepathy-idle
telepathy-salut
telepathy-sofiasip
texlive-core
thunderbird
tomboy
tomoyo-tools
truecrypt
ufw
unace
unetbootin
uniconvertor
unrar
vala
vi
vigra
vino
virtualbox
virtualbox-additions
wgetpaste
which
wicd-gtk
xchat
xdotool
xf86-video-ati
xfsprogs
xorg-twm
xorg-utils
xorg-xclock
xorg-xinit
xsane-gimp
xscreensaver
xterm

I first noticed this when I removed lxde and awesome after I was done playing with them and pacman took out pkgs necessary to run gnome. As you can see some x pkgs are listed as orphans, along with things that were not orphans before, like abs and firefox. My orphan list used to be only a few items long because gwibber apparenly has some build items that are no longer needed after install like dee and vala.

I've tried reinstalling the listed pkgs, ALL of my installed pkgs, and nothing. It keeps reporting this same string of pkgs and it is making me afraid to remove xscreensaver (the one thing on the list I don't want to keep) because I am afriad of pacman taking out too many pkgs. Installs seem to be working just fine, and I only use pacman to install pkgs on this system, I always use

 sudo pacman -S pkgname 

or

 sudo pacman -U /path/to/aur/pkg 

and I only update via

 sudo pacman -Syu 

So is there any way to "rebuild" the dependancy tree that I don't know about? I looked thourgh the Wiki and did not see anything.
Could I have removed a pkg(s) that has broken Pacman's dependancy tree?
Is there any more info that you guys might need to help me out with this?

- Thanks for any help,

Anders H

Last edited by Anders H (2012-02-14 09:34:13)

Offline

#2 2012-02-13 09:51:56

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

Re: [Solved] pacman -Qtdq is returning strange results - Please Help!

For some reason theses packages are installed as a dependency for another package, but they're not required by any package.
Can you post the output of e.g. 'pacman -Qi less'?

       -D, --database
           Modify the package database. This operation allows you to modify
           certain attributes of the installed packages in pacman’s database.
           At the moment, you can only change the install reason using
           --asdeps and --asexplicit options.
[karol@black ~]$ pacman -Qi less
Name           : less
Version        : 444-3
URL            : http://www.greenwoodsoftware.com/less
Licenses       : GPL3
Groups         : base
Provides       : None
Depends On     : ncurses  pcre
Optional Deps  : None
Required By    : None
Conflicts With : None
Replaces       : None
Installed Size : 220,00 KiB
Packager       : Allan McRae <allan@archlinux.org>
Architecture   : i686
Build Date     : pon, 6 lut 2012, 03:25:08
Install Date   : czw, 9 lut 2012, 21:09:29
Install Reason : Explicitly installed
Install Script : No
Description    : A terminal based program for viewing text files
[karol@black ~]$ pacman -Qi less | grep -e "Required By" -e "Install Reason"
Required By    : None
Install Reason : Explicitly installed
[karol@black ~]$ pacman -Qdt
[karol@black ~]$ pacman -D --asdeps less
less: install reason has been set to 'installed as dependency'
[karol@black ~]$ pacman -Qi less | grep -e "Required By" -e "Install Reason"
Required By    : None
Install Reason : Installed as a dependency for another package
[karol@black ~]$ pacman -Qdt
less 444-3

I've changed the install reason and now 'less' shows up as an orphan.

Offline

#3 2012-02-13 10:06:19

Anders H
Member
From: Reno, NV
Registered: 2011-07-31
Posts: 43
Website

Re: [Solved] pacman -Qtdq is returning strange results - Please Help!

I ran this

 sudo pacman -Qi $(pacman -Qdtq) | grep -e "Install Reason" 

and down the line is

 Install Reason : Installed as a dependency for another package 

so how do I change this issue without having to run a very similar command over 100 times?

I might be able to figure it out for myself but it is 2am here. My brain is not at its most "creative" right now.

Edit:

Would it be?

 pacman -D --asexplicit "listofpkgs" 

Last edited by Anders H (2012-02-13 10:07:58)

Offline

#4 2012-02-13 10:06:38

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: [Solved] pacman -Qtdq is returning strange results - Please Help!

If its something that you KNOW you want to keep, then just reinstall it with --asexplicit flag

Offline

#5 2012-02-13 10:22:24

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

Re: [Solved] pacman -Qtdq is returning strange results - Please Help!

Anders H wrote:

Would it be?

 pacman -D --asexplicit "listofpkgs" 

Yup.

Last edited by karol (2012-02-13 10:22:53)

Offline

#6 2012-02-14 09:33:27

Anders H
Member
From: Reno, NV
Registered: 2011-07-31
Posts: 43
Website

Re: [Solved] pacman -Qtdq is returning strange results - Please Help!

I double check the list and fixed the issues. Thanks guys for your help smile

Offline

Board footer

Powered by FluxBB