Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

How to find all emerged packages at version 9999?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
19 posts • Page 1 of 1
Author
Message
jeffk
l33t
l33t
Posts: 671
Joined: Sat Sep 13, 2003 1:51 pm

How to find all emerged packages at version 9999?

  • Quote

Post by jeffk » Wed Jan 20, 2010 4:46 pm

Is there an efficient way to find all emerged packages at version 9999?

I lose track of seldom-used ones, and would like the list so I can remind myself to update periodically, or downgrade to a stable release version.

Thanks.
Top
John R. Graham
Administrator
Administrator
User avatar
Posts: 10898
Joined: Tue Mar 08, 2005 3:39 pm
Location: Somewhere over Winder, Georgia, USA

  • Quote

Post by John R. Graham » Wed Jan 20, 2010 4:50 pm

Code: Select all

equery list -i | grep -e -9999
:)

- John
I can confirm that I have received between 0 and 499 National Security Letters.
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Wed Jan 20, 2010 4:53 pm

john_r_graham wrote:

Code: Select all

equery list -i | grep -e -9999
:)
Did you test that? I've alwys had trouble when grepping for something starting with - (as grep treats it as an option). Not that it really matters here.
Top
John R. Graham
Administrator
Administrator
User avatar
Posts: 10898
Joined: Tue Mar 08, 2005 3:39 pm
Location: Somewhere over Winder, Georgia, USA

  • Quote

Post by John R. Graham » Wed Jan 20, 2010 4:56 pm

Yes, I did. That's what the -e does: enables patterns to start with a dash. However, upon further inspection, the search pattern is overly restrictive as some live ebuilds have versions of the form "x.y.9999", so, as the pattern has changed, you no longer need the -e:

Code: Select all

equery list -i | grep \[-.\]9999
- John
Last edited by John R. Graham on Wed Jan 20, 2010 4:57 pm, edited 1 time in total.
I can confirm that I have received between 0 and 499 National Security Letters.
Top
yngwin
Retired Dev
Retired Dev
User avatar
Posts: 4572
Joined: Thu Dec 19, 2002 1:22 pm
Location: Suzhou, China

  • Quote

Post by yngwin » Wed Jan 20, 2010 4:57 pm

I think what you want is a feature that is already implemented in portage-2.2:

Code: Select all

emerge -a @live-rebuild
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Top
jeffk
l33t
l33t
Posts: 671
Joined: Sat Sep 13, 2003 1:51 pm

  • Quote

Post by jeffk » Thu Jan 21, 2010 4:37 am

The behavior of equery list apparently has changed:

Code: Select all

# equery list -i | grep -e -9999
!!! Default action for this module has changed in Gentoolkit 0.3.
!!! Use globbing to simulate the old behavior (see man equery).
!!! Use '*' to check all installed packages.
!!! Use 'foo-bar/*' to filter by category.

# equery list '*' | grep -e -9999
Thanks, this worked to produce the list I need. I'll probably start using the @live-rebuild set going forward.
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Thu Jan 21, 2010 5:02 am

Code: Select all

 # time equery list '*' | grep -e -9999
app-text/scrollkeeper-9999-r1

real    0m7.224s
user    0m7.073s
sys     0m0.141s

 # time qlist -Iv 9999
app-text/scrollkeeper-9999-r1

real    0m0.022s
user    0m0.018s
sys     0m0.001s
qlist is from app-portage/portage-utils
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Thu Jan 21, 2010 12:49 pm

In fact qlist handle pretty well that kind of stuff.
Top
MarcusXP
Apprentice
Apprentice
Posts: 237
Joined: Wed Apr 18, 2007 2:38 am
Location: Toronto, ON, Canada

  • Quote

Post by MarcusXP » Wed Sep 12, 2012 2:04 am

I know its an old topic but I am trying to achieve the same thing...
actually I want to run a command to update all my 9999 packages...

I tried this, but doesn't work:

Code: Select all

Storage ~ # emerge -av $(qlist -Iv 9999)
!!! 'net-libs/libktorrent-9999' is not a valid package atom.
!!! Please check ebuild(5) for full details.

this is what "qlist -Iv 9999" returns:

Code: Select all

Storage ~ # qlist -Iv 9999
net-libs/libktorrent-9999
net-p2p/ktorrent-9999
everything seems right, but emerge doesn't like it... any ideas how to make it work? I think I may have to remove -9999 from every line so that emerge will work, but I'm not sure how to do that :)
Top
MarcusXP
Apprentice
Apprentice
Posts: 237
Joined: Wed Apr 18, 2007 2:38 am
Location: Toronto, ON, Canada

  • Quote

Post by MarcusXP » Wed Sep 12, 2012 2:08 am

I found this command on another thread, it seems to be working fine:
emerge -av `find /var/db/pkg/ -mindepth 2 -maxdepth 2 -name \*-9999|awk -F \/ '{printf "=%s/%s ", $5, $6}'`

however, using "qlist -Iv" should be fater than this (which uses the find command on the filesystem), any suggestions how to make that work?
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

  • Quote

Post by DaggyStyle » Wed Sep 12, 2012 2:29 am

MarcusXP wrote:I know its an old topic but I am trying to achieve the same thing...
actually I want to run a command to update all my 9999 packages...

I tried this, but doesn't work:

Code: Select all

Storage ~ # emerge -av $(qlist -Iv 9999)
!!! 'net-libs/libktorrent-9999' is not a valid package atom.
!!! Please check ebuild(5) for full details.

this is what "qlist -Iv 9999" returns:

Code: Select all

Storage ~ # qlist -Iv 9999
net-libs/libktorrent-9999
net-p2p/ktorrent-9999
everything seems right, but emerge doesn't like it... any ideas how to make it work? I think I may have to remove -9999 from every line so that emerge will work, but I'm not sure how to do that :)
did you tried smart-live-rebuild?
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Top
MarcusXP
Apprentice
Apprentice
Posts: 237
Joined: Wed Apr 18, 2007 2:38 am
Location: Toronto, ON, Canada

  • Quote

Post by MarcusXP » Wed Sep 12, 2012 2:39 am

I had no idea this command existed :)
Yet it does.. and seems useful.. thanks for the tip!

Anyways, I figured how to use qlist in the meanwhile.. for whom it may still be interested:

Code: Select all

emerge -av $(qlist -ICv 9999 | sed 's/.....$//')
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

  • Quote

Post by DaggyStyle » Wed Sep 12, 2012 3:14 am

check qatom instead of sed.
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Top
MarcusXP
Apprentice
Apprentice
Posts: 237
Joined: Wed Apr 18, 2007 2:38 am
Location: Toronto, ON, Canada

  • Quote

Post by MarcusXP » Wed Sep 12, 2012 3:22 am

Good suggestion, I didn't know about this command either.
However, it seems that it requires a bit more work than using sed... because it splits the whole package name in three, so I have to use the middle one or join the first two, with "/" between them...

Code: Select all

Storage ~ # qatom $(qlist -ICv 9999)
net-libs libktorrent 9999
net-p2p ktorrent 9999
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

  • Quote

Post by DaggyStyle » Wed Sep 12, 2012 5:05 am

MarcusXP wrote:Good suggestion, I didn't know about this command either.
However, it seems that it requires a bit more work than using sed... because it splits the whole package name in three, so I have to use the middle one or join the first two, with "/" between them...

Code: Select all

Storage ~ # qatom $(qlist -ICv 9999)
net-libs libktorrent 9999
net-p2p ktorrent 9999
how about

Code: Select all

qatom $(qlist -ICv 9999) | awk '{ print "$1/$2"}'
?
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Wed Sep 12, 2012 12:00 pm

Depending on how far you're willing to diverge from vanilla portage, paludis has a "--reinstall-scm" switch built in too (which also catches -99999999 versions and is smart about only rebuilding once a day/week).
Top
ppurka
Advocate
Advocate
Posts: 3257
Joined: Sun Dec 26, 2004 5:05 pm

  • Quote

Post by ppurka » Wed Sep 12, 2012 3:02 pm

Why remove the 9999 stuff? Simply prepend with = :)

Code: Select all

emerge -p $(qlist -ICv 9999 | sed 's/^/=/')
But I don't seem to have @smart-live-rebuild. I do have @live-rebuild in portage-2.2
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Top
khayyam
Watchman
Watchman
User avatar
Posts: 6227
Joined: Thu Jun 07, 2012 2:45 am
Location: Room 101

  • Quote

Post by khayyam » Thu Sep 13, 2012 1:15 am

.... or similarly with awk ...

Code: Select all

emerge -pv $(awk '{print "=" $1}' <(qlist -ICv 9999))
best ... khay
Top
proteusx
Guru
Guru
User avatar
Posts: 340
Joined: Mon Jan 21, 2008 11:35 am

  • Quote

Post by proteusx » Thu Sep 13, 2012 11:55 am

Code: Select all

emerge -vp @live-rebuild
misses some items.
e.g.
dev-perl/File-Slurp-9999.190.0
app-text/scrollkeeper-9999-r1

So I created my own set with the 9999 packages:

Code: Select all

qlist -ICv 9999 | sed 's/^/=/' > /etc/portage/sets/p-9999
Then to update:

Code: Select all

emerge -pv @p-9999
Top
Post Reply

19 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic