Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can we ask a given list of packages emerged?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Thu Dec 06, 2007 3:12 am    Post subject: can we ask a given list of packages emerged? Reply with quote

if i make a list of upgrade packages where should i place it for the emerge to see it?
this list is derived from the emerge -Duav world and edited.
give me some idea
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
CrankyPenguin
Apprentice
Apprentice


Joined: 19 Jun 2003
Posts: 283

PostPosted: Thu Dec 06, 2007 6:39 am    Post subject: List of packages? Reply with quote

It depends upon what this list is of exactly. The world file in /var/lib/portage contains the set of packages you have explicitly emerged but not the set that came as dependencies.

If however you want to programmatically emerge a list of packages (I'm assuming not all in the list else you could just reply yes or drop the -a) then what I often do is make a sh script from it. Strip out the extraneous info and make it into a listing for a bash script.

e.g. take:
Code:

[ebuild     U ] dev-lang/perl-5.8.8-r3 [5.8.8-r2] USE="berkdb gdbm -build -debug -doc -ithreads -perlsuid" 0 kB
[ebuild     U ] sys-apps/util-linux-2.12r-r8 [2.12r-r7] USE="crypt nls perl -old-crypt (-selinux) -static" 0 kB
[ebuild     U ] sys-libs/glibc-2.6.1 [2.5-r4] USE="nls -debug -glibc-omitfp (-hardened) (-multilib) -profile (-selinux) -vanilla% (-build%) (-glibc-compat20%) (-nptl%*) (-nptlonly%*)" 0 kB


And convert it to:
Code:

emerge -v dev-lang/perl
emerge -v sys-apps/util-linux
emerge -v sys-libs/glibc


then just run:
Code:

bash emergeme.sh


If this crashes then you can delete it and rerun it. It has the advantage of also being portable to another system. It can also be easily edited and built using some emacs commands or regular expression replacement (what I used when I last did this).

If however your only goal is to deal with crashes you can just run the original emerge -Duav and on failure run:
Code:

emerge --resume --skipfirst

and that will restart the last emerge skipping the first package (the one that crached).
The one catch is that this will not recalculate whether any of the subsequent packages are correct. I.E. if a dependency crashes it will still try to emerge the original package that needed it.
_________________
Linux, the OS for the obsessive-compulsive speed freak in all of us.
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Thu Dec 06, 2007 7:13 am    Post subject: Reply with quote

yes i understand what you mean and seems ok when number of packages to be emerged is big say >40 or so.
when we deal with say 10 packages it looks like round about way and as you said if we drop one or more packages in the shown list by emerge -Duav world the dependnecies will not be recalculated.

isn't there a command to emerge multipple packages in one line?
which will calculate deps and improve on the given packages numbers

example
emerge -Duav mozilla-firefox opera kdenetworks [i dont know if they are seperated by comas or space]

for the 3 packages emerge will find dependencies and may want to emerge 10 packages depending on how old was previous update

instead of emerging -Du world specific packages can emerge if so how to command
code?
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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