|
Next: Accepted eog 2.28.1-1 (source all amd64)
|
| Author |
Message |
External

Since: Mar 08, 2005 Posts: 81
|
(Msg. 1) Posted: Thu Oct 22, 2009 8:25 am
Post subject: [gentoo-user] Short cut for unmerging all packages that are not longer in the tree Archived from groups: linux>gentoo>user (more info?)
|
|
|
Hi,
is there an easy way to unmerge all packages which are no longer in
the current portage tree.
(Those make problems on update world)
Many thanks for a hint,
Helmut.
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany |
|
| Back to top |
|
 |  |
External

Since: Oct 22, 2009 Posts: 2
|
(Msg. 2) Posted: Thu Oct 22, 2009 8:25 am
Post subject: Re: [gentoo-user] Short cut for unmerging all packages that are not longer in the tree [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Helmut Jarausch wrote:
> Hi,
>
> is there an easy way to unmerge all packages which are no longer in
> the current portage tree.
> (Those make problems on update world)
>
> Many thanks for a hint,
> Helmut.
>
>
if packages are not in the portage tree, they should not be pulled in
anymore. therefore "emerge --depclean" could help.
Johannes |
|
| Back to top |
|
 |  |
External

Since: Jan 08, 2008 Posts: 205
|
(Msg. 3) Posted: Thu Oct 22, 2009 9:25 am
Post subject: Re: [gentoo-user] Short cut for unmerging all packages that are not longer in the tree [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Thursday 22 October 2009 15:42:41 Johannes Kimmel wrote:
> Helmut Jarausch wrote:
> > Hi,
> >
> > is there an easy way to unmerge all packages which are no longer in
> > the current portage tree.
> > (Those make problems on update world)
> >
> > Many thanks for a hint,
> > Helmut.
>
> if packages are not in the portage tree, they should not be pulled in
> anymore. therefore "emerge --depclean" could help.
depclean only removes packages that it knows for a fact are no longer needed.
This means
- not in world
- not linked to by anything
- not depended on by anything
"not in the tree" is not part of that list. If you have a package in world
that is not in the tree anymore, depclean will leave it as is. It will remove
ancient mere deps that are somehow still lying around though
--
alan dot mckinnon at gmail dot com |
|
| Back to top |
|
 |  |
External

Since: Jul 31, 2006 Posts: 13
|
(Msg. 4) Posted: Thu Oct 22, 2009 11:25 am
Post subject: Re: [gentoo-user] Short cut for unmerging all packages that are not longer in the tree [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Thu, 22 Oct 2009 14:09:31 +0200, Alan McKinnon
<alan.mckinnon RemoveThis @gmail.com>
wrote:
> On Thursday 22 October 2009 15:42:41 Johannes Kimmel wrote:
>> Helmut Jarausch wrote:
>> > Hi,
>> >
>> > is there an easy way to unmerge all packages which are no longer in
>> > the current portage tree.
>> > (Those make problems on update world)
>> >
>> > Many thanks for a hint,
>> > Helmut.
>>
>> if packages are not in the portage tree, they should not be pulled in
>> anymore. therefore "emerge --depclean" could help.
>
> depclean only removes packages that it knows for a fact are no longer
> needed.
> This means
>
> - not in world
> - not linked to by anything
> - not depended on by anything
>
> "not in the tree" is not part of that list. If you have a package in
world
> that is not in the tree anymore, depclean will leave it as is. It will
> remove
> ancient mere deps that are somehow still lying around though
Yep, if the package is in world, delclean will not help.
You could always do it the bash way. I have no idea if there's any tool
out there that will make this easier, but it's simple enough to script it,
something like this should work:
qlist -I --nocolor | while read pkg; do
if [ ! -d "/var/portage/$pkg" ]; then
echo "$pkg is not in portage"
fi
done
This will not catch overlays, but it could be easily extended to do so,
it's just a generic (and untested) example. It should work I guess. It just
dumps the list of installed packages, then tries to find a dir with the
same name under your portage directory and if it doesn't exist then the
package name is printed.
--
Jesús Guerrero |
|
| Back to top |
|
 |  |
External

Since: Jan 08, 2008 Posts: 205
|
(Msg. 5) Posted: Thu Oct 22, 2009 11:25 am
Post subject: Re: [gentoo-user] Short cut for unmerging all packages that are not longer in the tree [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Thursday 22 October 2009 15:58:17 Jesús Guerrero wrote:
> > depclean only removes packages that it knows for a fact are no longer
> > needed.
> > This means
> >
> > - not in world
> > - not linked to by anything
> > - not depended on by anything
> >
> > "not in the tree" is not part of that list. If you have a package in
>
> world
>
> > that is not in the tree anymore, depclean will leave it as is. It will
> > remove
> > ancient mere deps that are somehow still lying around though
>
> Yep, if the package is in world, delclean will not help.
>
> You could always do it the bash way. I have no idea if there's any tool
> out there that will make this easier, but it's simple enough to script it,
> something like this should work:
>
> qlist -I --nocolor | while read pkg; do
> if [ ! -d "/var/portage/$pkg" ]; then
> echo "$pkg is not in portage"
> fi
> done
>
> This will not catch overlays, but it could be easily extended to do so,
> it's just a generic (and untested) example. It should work I guess. It just
> dumps the list of installed packages, then tries to find a dir with the
> same name under your portage directory and if it doesn't exist then the
> package name is printed.
>
The best place for this would be
equery orphan <params>
or similar. I'm sure the maintainer will gratefully accept patches
--
alan dot mckinnon at gmail dot com |
|
| Back to top |
|
 |  |
External

Since: Mar 08, 2005 Posts: 81
|
(Msg. 6) Posted: Thu Oct 22, 2009 11:25 am
Post subject: Re: [gentoo-user] Short cut for unmerging all packages that are not longer in the tree [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Thanks to all of you for your help,
Helmut.
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany |
|
| Back to top |
|
 |  |
External

Since: Oct 27, 2006 Posts: 289
|
(Msg. 7) Posted: Thu Oct 22, 2009 11:25 am
Post subject: [gentoo-user] Re: Short cut for unmerging all packages that are not longer in the tree [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 10/22/2009 02:14 PM, Helmut Jarausch wrote:
> Hi,
>
> is there an easy way to unmerge all packages which are no longer in
> the current portage tree.
> (Those make problems on update world)
>
> Many thanks for a hint,
> Helmut.
Quick 'n dirty one-liner:
for f in $(qlist -IC); do stat /usr/portage/"$f" > /dev/null; done
For packages not in the tree, you will get something like:
stat: cannot stat `/usr/portage/x11-themes/foobar': No such file
or directory
meaning that x11-themes/foobar is not in the tree. Of course this
doesn't check overlays. |
|
| Back to top |
|
 |  |
| Related Topics: | [gentoo-user] Got myself in a bind unmerging portage - It all started like this: Using rsync I was getting an error when ever I used the `--stats' flag. The output said it was an error in the stack ... Rather than mess with it, I thought I might take the opportunity to sync portage and see if a newer rsync...
[gentoo-user] ESD/esound "hangs" after a short time - Hallo. When I use an application which uses esound/esd to "make noise", the output stops after a short period of time (~40 seconds) and esd then consumes about 100% CPU. I'm using a "lousy" 00:11.5 Multimedia audio controller: VIA T...
[gentoo-user] What is the preferred gentoo way to list all.. - Hi, I have an older gentoo systen which accumulated some cruft over the time - I have to clean it up :-) I want to list all installed SLOTTED packages where more than one version is installed. The old (deprecated) qpkg had the option "--dups". ...
[gentoo-user] "dev" packages - I'm working on an install of Xen 3.0 (manual install, not from Portage) and trying to locate its listed prerequisites. I'm having trouble locating two of them: "zlib-dev" "python-dev" (This is what the Xen docs refers to them as.) ...
[gentoo-user] What happens with masked packages? - Hello, I'm running an amd64 Gentoo (but this is not a specific amd64 question) and have installed a few ~amd64 masked packages - and some work amzingly well. So I googled for information as to where I might report success, so that they might be.. |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|