Jump to content


Finding and Removing Orpans w/ Yaourt in Arch Linux


  • Please log in to reply
19 replies to this topic

#1 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum MVP
  • 19,008 posts

Posted 23 January 2012 - 09:50 PM

Does your yaourt ever give you those annoying bright red notices of orphaned apps after you've done your -Syua? Well, here's how to fix that:

CODE
$ yaourt -Qtd
Password: **********


The Q = query, just as with pacman. The -t and -d options are orphans and their dependencies. Yaourt will ask if you want to remove all. Say "Y", give password, and off you go. All nice and clean again.

smile.gif

Later...

Posted Image


Have a creepy little Halloween!


#2 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 16,067 posts

Posted 23 January 2012 - 10:22 PM

Thanks for posting the tip Eric thumbsup.gif
Posted ImagePosted Image Posted Image
CNI Radio/Archlinux G+/Configs/PGP Key π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#3 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum MVP
  • 19,008 posts

Posted 23 January 2012 - 10:47 PM

I just learned it myself this evening. Figured someone else might find it useful. smile.gif

Posted Image


Have a creepy little Halloween!


#4 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 16,067 posts

Posted 24 January 2012 - 01:06 AM

I have used it before but mind you some applications that are maked as orphan are not always orphaned. Orphans are supposed to be packages no longer required as a dependency but sometimes the apps are standalone.

For instance when I tried the command earlier, it tried to remove git and cacti even though git is in the Extra repo and is a standalone app. So just pay attention to what it removes.


Posted ImagePosted Image Posted Image
CNI Radio/Archlinux G+/Configs/PGP Key π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#5 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum MVP
  • 19,008 posts

Posted 24 January 2012 - 01:43 PM

Yup. I noticed that, particularly when using pacman's version of that command. It shows many standalone apps, Seamonkey, etc. Can't be removing that stuff. sad.gif

Posted Image


Have a creepy little Halloween!


#6 OFFLINE   abarbarian

abarbarian

    Discussion Deity

  • Forum MVP
  • 3,703 posts

Posted 24 January 2012 - 04:59 PM

Does it only get rid of the dependencies that are used by the orphans and not needed by any other programs ?  hmm.gif
Install ARCH
You'll never need to install it again
"I did and I'm really happy"

Posted Image~~~~~~~~~~~~~Posted Image

#7 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 16,067 posts

Posted 24 January 2012 - 05:19 PM

QUOTE (abarbarian @ Jan 24 2012, 02:59 PM) <{POST_SNAPBACK}>
Does it only get rid of the dependencies that are used by the orphans and not needed by any other programs ?  hmm.gif

It is supposed to remove orphan packages which are packages that used to be dependencies of a previous package you uninstalled (basically cleaning up leftover dependencies).  This is not always the case as I mentioned above.
Posted ImagePosted Image Posted Image
CNI Radio/Archlinux G+/Configs/PGP Key π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#8 OFFLINE   abarbarian

abarbarian

    Discussion Deity

  • Forum MVP
  • 3,703 posts

Posted 24 January 2012 - 07:44 PM

Thanks securitybreach. I was too researched out to look it up in the wiki.  thumbsup.gif
Install ARCH
You'll never need to install it again
"I did and I'm really happy"

Posted Image~~~~~~~~~~~~~Posted Image

#9 OFFLINE   sunrat

sunrat

    Discussion Deity

  • Forum Moderators
  • 4,429 posts

Posted 25 January 2012 - 07:55 PM

Debian has deborphan. I would never trust it to automatically remove packages. Just use it to get a list of possible removal candidates.
Actually, I never use it at all. The amount of space gained would be insignificant and the amount of work to research whether each program should actually be removed would not be worth it.
registered Linux user number 324659  || The importance of Reading The *Fine* Manual! :D
Posted ImagePosted ImagePosted Image Posted Image MX-14
For the things we have to learn before we can do them, we learn by doing them.

#10 OFFLINE   abarbarian

abarbarian

    Discussion Deity

  • Forum MVP
  • 3,703 posts

Posted 26 January 2012 - 07:15 AM

Don't even ask why I'm yaourting as root   rant.gif

oh ok I fess up it has been so long since I ran arch that I have temporarily forgotten me user password. I could probably remember it but it would take me a while and I'm going to do a fresh install this weekend so I'll just find another when I do  stuart.gif

CODE
[root@myhost ~]# yaourt -Qtd
community/asciidoc 8.6.6-2
community/busybox 1.19.2-2
local/cloog-ppl 0.15.10-2
community/clucene 2.3.3.4-1
community/cython 0.15.1-1
extra/elfutils 0.152-1
local/esound 0.2.41-2
local/gen-init-cpio 2.6.36-1
extra/git 1.7.7-1
extra/gnome-disk-utility 3.0.2-2 (gnome-extra)
extra/gnome-icon-theme 3.2.0-1 (gnome)
extra/gnome-menus 3.2.0.1-1
extra/gobject-introspection 1.30.0-1
extra/intltool 0.41.1-2
extra/ladspa 1.13-3
extra/pyrex 0.9.9-2
extra/python2-distribute 0.6.21-1
extra/raptor1 1.4.21-3
extra/rpmextract 1.0-4
extra/rrdtool 1.4.5-4
extra/sbcl 1.0.51-1
extra/subversion 1.6.17-6
local/thunar-vfs 1.2.0-2
community/vbetool 1.1-2
extra/wavpack 4.60.1-1
extra/xorg-xkb-utils 7.6-1
extra/xulrunner 7.0-1
==> Do you want to remove these packages (with -Rcs options) ?  [y/N]


CODE
checking dependencies...

Remove (45): xulrunner-7.0-1  xorg-xkb-utils-7.6-1  wavpack-4.60.1-1
             vbetool-1.1-2  thunar-vfs-1.2.0-2  subversion-1.6.17-6
             sbcl-1.0.51-1  rrdtool-1.4.5-4  rpmextract-1.0-4  raptor1-1.4.21-3
             python2-distribute-0.6.21-1  pyrex-0.9.9-2  ladspa-1.13-3
             intltool-0.41.1-2  gobject-introspection-1.30.0-1
             gnome-menus-3.2.0.1-1  gnome-icon-theme-3.2.0-1
             gnome-disk-utility-3.0.2-2  git-1.7.7-1  gen-init-cpio-2.6.36-1
             esound-0.2.41-2  elfutils-0.152-1  cython-0.15.1-1
             clucene-2.3.3.4-1  cloog-ppl-0.15.10-2  busybox-1.19.2-2
             asciidoc-8.6.6-2  xorg-xkbevd-1.1.2-2  xorg-xkbutils-1.0.3-2
             libx86-1.1-3  fam-2.7.0-16  hal-0.5.14-6  apr-util-1.3.12-2
             gnome-icon-theme-symbolic-3.2.0-1  icon-naming-utils-0.8.90-2
             libunique3-3.0.2-1  perl-error-0.17016-2  audiofile-0.2.7-1
             rpcbind-0.2.0-3  consolekit-0.4.5-1  dmidecode-2.11-1
             hal-info-0.20091130-1  apr-1.4.5-1  perl-xml-simple-2.18-3
             perl-xml-parser-2.41-1

Total Removed Size:   253.69 MB

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


By gum that was a lot of crud  happy62.gif

Hope I can still boot  sweatingbullets.gif
Install ARCH
You'll never need to install it again
"I did and I'm really happy"

Posted Image~~~~~~~~~~~~~Posted Image

#11 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 16,067 posts

Posted 26 January 2012 - 10:46 AM

QUOTE (abarbarian @ Jan 26 2012, 05:15 AM) <{POST_SNAPBACK}>
Don't even ask why I'm yaourting as root   rant.gif

oh ok I fess up it has been so long since I ran arch that I have temporarily forgotten me user password. I could probably remember it but it would take me a while and I'm going to do a fresh install this weekend so I'll just find another when I do  stuart.gif

By gum that was a lot of crud  happy62.gif

Hope I can still boot  sweatingbullets.gif

What have you been running, I thought you were a die-hard Archer?? As far as your packages, I would not remove a lot of those as you will have some issues:

wavpack-4.60.1-1  (Required by gstreamer-good which provide some of your codecs)
subversion-1.6.17-6 (Required by Dolphin FM and others)
rrdtool-1.4.5-4 (required by ntop)  
ladspa-1.13-3 (required by alsa)
intltool-0.41.1-2  (required by lxappearance and menu-cache/openbox)
gnome-menus-3.2.0.1-1  (Will break gnome  required by gnome-control-center  gnome-panel  gnome-shell)
gnome-icon-theme-3.2.0-1 (Required by Nautilus)
git-1.7.7-1  (worth keeping)
esound-0.2.41-2  (sound daemon for Enlightenment WM)
consolekit-0.4.5-1  Will break Gnome, KDE, and Xfce4 (Required by gnome-session, kde-session, and Xfce4-session)

And yes, I ran pacman -Qi for every package you showed above and listed the ones you should not of removed. I just wanted to show that blindly removing stuff will break things.
Posted ImagePosted Image Posted Image
CNI Radio/Archlinux G+/Configs/PGP Key π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#12 ONLINE   LilBambi

LilBambi

    Australisches Googler

  • Forum Admins
  • 21,522 posts

Posted 26 January 2012 - 11:05 AM

So true, securitybreach! I think we all had to learn that lesson the hard way at times.
Bambi
AKA Fran

Posted Image
My Public Key for Email :: BambisMusings Blog :: Fran's Computer Services Blog :: MyPassionIsBooks Blog :: 5BuckReview :: CNIRadio
"The Net interprets censorship as damage and routes around it." ~John Gilmore (Time Magazine, Dec 6, 1993)

#13 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 16,067 posts

Posted 26 January 2012 - 11:07 AM

QUOTE (LilBambi @ Jan 26 2012, 09:05 AM) <{POST_SNAPBACK}>
So true, securitybreach! I think we all had to learn that lesson the hard way at times.

Yeah right, I have broken many installations myself over the years and learned the hard way to not run unknown commands.
Posted ImagePosted Image Posted Image
CNI Radio/Archlinux G+/Configs/PGP Key π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#14 OFFLINE   abarbarian

abarbarian

    Discussion Deity

  • Forum MVP
  • 3,703 posts

Posted 26 January 2012 - 11:55 AM

QUOTE (securitybreach @ Jan 26 2012, 10:46 AM) <{POST_SNAPBACK}>
What have you been running, I thought you were a die-hard Archer?? As far as your packages, I would not remove a lot of those as you will have some issues:


3 weeks over the festive season without internet access as I was in York looking after me mum. A chainsaw as the woodshed was depleted and had not been filled due to being away.

Research and real time familiarisation and practical use of

AdrianeKnoppix


Quimo
Doudoulinux

An a great deal of time spent researching and installing on a usb and playing with

Musix

Also brief affairs with

Elive
Antix

An Windows 7 as it really is the best at the moment for the games I play.

Yer right of course about reading the man pages instead of just blindly copying and pasting. An doubly right about deleting stuff. thanks for taking the time to "-Qi"
I am as stated going to do a complete new install of Arch at the weekend as this nearly a year long initial test and learn install has served me well but needs to die. New year new clean install, no goofs no looking back.   biggrin.gif


Install ARCH
You'll never need to install it again
"I did and I'm really happy"

Posted Image~~~~~~~~~~~~~Posted Image

#15 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 16,067 posts

Posted 26 January 2012 - 11:57 AM

Sounds good thumbsup.gif

No problem on checking the files for you. I just did not want you to mess up your installation.
Posted ImagePosted Image Posted Image
CNI Radio/Archlinux G+/Configs/PGP Key π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#16 OFFLINE   abarbarian

abarbarian

    Discussion Deity

  • Forum MVP
  • 3,703 posts

Posted 26 January 2012 - 12:33 PM

QUOTE (securitybreach @ Jan 26 2012, 12:57 PM) <{POST_SNAPBACK}>
Sounds good thumbsup.gif

No problem on checking the files for you. I just did not want you to mess up your installation.


That is muchly appreciated.  happy71.gif

So even after evilly killing all them poor old orphans I can still boot and have a nearly usable Arch   happy71.gif

Only seem to be missing "esound-0.2.41-2 (sound daemon for Enlightenment WM)" as no sound in smplayer or gogglesmm.

Not going to try installing "esound-0.2.41-2 (sound daemon for Enlightenment WM" as I don't want to phaph around with the last pacman updating signature thingy.

Clean install here I come >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> sorcerer.gif


Install ARCH
You'll never need to install it again
"I did and I'm really happy"

Posted Image~~~~~~~~~~~~~Posted Image

#17 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum MVP
  • 19,008 posts

Posted 26 January 2012 - 12:44 PM

abarbarian, since you have root access, you could always --> http://www.brunolinux.com/01-First_Things_...r_Password.html

Posted Image


Have a creepy little Halloween!


#18 OFFLINE   abarbarian

abarbarian

    Discussion Deity

  • Forum MVP
  • 3,703 posts

Posted 26 January 2012 - 01:13 PM

QUOTE (V.T. Eric Layton @ Jan 26 2012, 12:44 PM) <{POST_SNAPBACK}>
abarbarian, since you have root access, you could always --> http://www.brunolinux.com/01-First_Things_...r_Password.html


ooooh that was handy.
Done and bookmarked and also tested by,

QUOTE
You can logout to the terminal by doing Ctrl+Alt+ F2
login as the new user and start another xserver


Then logging out and Ctrl+Alt+F7 to get me back here again.

smile.gif



Install ARCH
You'll never need to install it again
"I did and I'm really happy"

Posted Image~~~~~~~~~~~~~Posted Image

#19 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum MVP
  • 19,008 posts

Posted 26 January 2012 - 01:31 PM

YAY! Bruno's Tips are still pretty handy stuff. smile.gif

Posted Image


Have a creepy little Halloween!


#20 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 16,067 posts

Posted 26 January 2012 - 03:12 PM

QUOTE (V.T. Eric Layton @ Jan 26 2012, 11:31 AM) <{POST_SNAPBACK}>
YAY! Bruno's Tips are still pretty handy stuff. smile.gif

thumbsup.gif
Posted ImagePosted Image Posted Image
CNI Radio/Archlinux G+/Configs/PGP Key π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users