Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-sparc
Navigation:
Lists: gentoo-sparc: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: Gentoo Sparc List <gentoo-sparc@g.o>
From: Paul Heinlein <heinlein@...>
Subject: Forcing package check
Date: Sat, 16 Sep 2006 10:03:18 -0700 (PDT)
Some time ago, I'd begun to think that perhaps the Gentoo package 
system on my SPARC had become somewhat corrupted. (Snip long story 
about SunBlades and IDE corruption...) Queries concerning installed 
packages seemed to execute correctly, but "emerge -uvD world" seemed 
to ignore packages that really needed to be upgraded.

I finally got around to brute-forcing the portage system into querying 
every single installed package to see if it was in need of an update. 
The resulting pipe sequence is convoluted and takes a while to run, 
but it seems to do the job. Oh, and you'll also need to have the epm 
ebuild installed.

    epm -qGa |\
    sed -e 's/-r[0-9][0-9]*$//' -e 's/-[^-]*$//' |\
    sort -u |\
    (while read n; do emerge -puv "$n"; done) |\
    grep -w ebuild

In semi-plain English, the procedure is

1. Get list of all installed ebuilds, complete with group name
2. Remove release and version numbers from ebuild names
3. Remove duplicates, common with slotted ebuilds
4. Loop over each ebuild name looking for updates
5. Important output from emerge has word "ebuild" in the string

Someone will probably now tell me that there's a nifty prebuilt tool 
for this sort of work... :-)

-- 
Paul Heinlein <> heinlein@... <> www.madboa.com

-- 
gentoo-sparc@g.o mailing list


Replies:
Re: Forcing package check
-- Andrew Gaffney
Navigation:
Lists: gentoo-sparc: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Binaires solaris 10 sur Gentoo/SPARC
Next by thread:
Re: Forcing package check
Previous by date:
Re: Binaires solaris 10 sur Gentoo/SPARC
Next by date:
Re: Forcing package check


Updated Jun 17, 2009

Summary: Archive of the gentoo-sparc mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.