
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.john_r_graham wrote:Code: Select all
equery list -i | grep -e -9999![]()

Code: Select all
equery list -i | grep \[-.\]9999Code: Select all
emerge -a @live-rebuildCode: 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 -9999Code: 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.001sCode: 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.Code: Select all
Storage ~ # qlist -Iv 9999
net-libs/libktorrent-9999
net-p2p/ktorrent-9999
did you tried smart-live-rebuild?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:
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 thatCode: Select all
Storage ~ # qlist -Iv 9999 net-libs/libktorrent-9999 net-p2p/ktorrent-9999
Code: Select all
emerge -av $(qlist -ICv 9999 | sed 's/.....$//')
Code: Select all
Storage ~ # qatom $(qlist -ICv 9999)
net-libs libktorrent 9999
net-p2p ktorrent 9999
how aboutMarcusXP 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
Code: Select all
qatom $(qlist -ICv 9999) | awk '{ print "$1/$2"}'Code: Select all
emerge -p $(qlist -ICv 9999 | sed 's/^/=/')Code: Select all
emerge -pv $(awk '{print "=" $1}' <(qlist -ICv 9999))Code: Select all
emerge -vp @live-rebuildCode: Select all
qlist -ICv 9999 | sed 's/^/=/' > /etc/portage/sets/p-9999Code: Select all
emerge -pv @p-9999