View previous topic :: View next topic |
Author |
Message |
valeryan n00b
Joined: 20 Jul 2002 Posts: 16 Location: Virginia Beach, VA
|
Posted: Sun Jul 21, 2002 12:35 am Post subject: Can emerge do it all night long? |
|
|
I am wondering is theres a way to get emerge to just install everything in the distfiles directory? Because I need to completely repartion my whole system and it would be really nice if i could just save all the files I have downloaded and just have emerge install them all with a single command so i could just let it go overnight instead of reinstalling them package by package. Any help? _________________ WOW! Its so dark in here I can't even see my self think. |
|
Back to top |
|
|
sisob Apprentice
Joined: 28 Jun 2002 Posts: 274 Location: Ireland
|
Posted: Sun Jul 21, 2002 6:01 am Post subject: |
|
|
emerge -f will just download the files needed which i find useful, then I just use emerge
to compile them.
emerge will use any source files in /usr/portage/distfiles before downloadind any more
so make sure you backup and restore that directory and then you wont have to
download everything again. _________________ Mark Finlay - Gnome Hacker of Sorts
Come join me on the Gnome User's Forum |
|
Back to top |
|
|
valeryan n00b
Joined: 20 Jul 2002 Posts: 16 Location: Virginia Beach, VA
|
Posted: Sun Jul 21, 2002 12:45 pm Post subject: |
|
|
Yes, but what I'm looking for is their a command that would make portage just install what ever is in the distfiles folder. Something like emerge distfiles/*.* or something like that, so i could just have everthing I wont to install in that folder and just do it all with one command. _________________ WOW! Its so dark in here I can't even see my self think. |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Sun Jul 21, 2002 1:03 pm Post subject: |
|
|
You may want to look at ebuild compile. However, ebuild does not handle dependencies itself, so you may have some work to do to script it. |
|
Back to top |
|
|
metalhedd l33t
Joined: 30 May 2002 Posts: 692 Location: Ontario Canada
|
Posted: Sun Jul 21, 2002 2:15 pm Post subject: |
|
|
not sure if I understand the question properly, but I'm thinking maybe you're looking for 'world'?
read the portage manual it explains it all. basicall everytime you install a package it gets added to teh "world" file. (i'm not sure where the file is kept) then you can do emerge -u world to update all of your software. |
|
Back to top |
|
|
metalhedd l33t
Joined: 30 May 2002 Posts: 692 Location: Ontario Canada
|
Posted: Sun Jul 21, 2002 2:15 pm Post subject: |
|
|
not sure if I understand the question properly, but I'm thinking maybe you're looking for 'world'?
read the portage manual it explains it all. basicall everytime you install a package it gets added to teh "world" file. (i'm not sure where the file is kept) then you can do emerge -u world to update all of your software. |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Sun Jul 21, 2002 3:09 pm Post subject: |
|
|
Think he wants to build everything but not install since he will re-partition his system. |
|
Back to top |
|
|
valeryan n00b
Joined: 20 Jul 2002 Posts: 16 Location: Virginia Beach, VA
|
Posted: Sun Jul 21, 2002 3:48 pm Post subject: |
|
|
ok I have Gentoo installed exactly the way I wont it, the problem is I need to completely destroy all the partions on my drive and restructer it. I wont to know if their is a way to take all the packages I have downloaded and emerged and have them all just reinstalled when I get Gentoo back up. so I wont have to go through and reinstall everything one package at a time (i.e. emerge gnome, emerge kde, emerge evelution, etc..). basicly is their a way to take the packages I have installed and back up what they are and then have portage just emerge all those packages again when I get gentoo back online so I dont have to remember every package I have had to install to get my system the way I want. So like I could just put everthing I have emerge back in the distfiles folder and then have portage just install whatever is in that folder. Its probabaly not possible but im a firm beleiver that it never hurts to ask. _________________ WOW! Its so dark in here I can't even see my self think. |
|
Back to top |
|
|
metalhedd l33t
Joined: 30 May 2002 Posts: 692 Location: Ontario Canada
|
Posted: Sun Jul 21, 2002 4:08 pm Post subject: |
|
|
use qpkg -I it will list all of your currently installed packages.
you might want to 'feed' that to a little script to remove all of excess data leaving just the ebuild names. then save just that file... when you're done repartitioning etc. you can just list all of those packages as arguments to emerge. emerge can handle more than one package on the command line.
if that was confusing (it was to me anyway.. ) all you need to know is that if you have a list of all the packages currently installed you can specify them all at once. (ie. emerge kde gnome blackbox kmess etc etc etc) and you can get this list with qpkg -I or it is also listed in the 'world' file, which is in some obscure place that I can't remember. |
|
Back to top |
|
|
valeryan n00b
Joined: 20 Jul 2002 Posts: 16 Location: Virginia Beach, VA
|
Posted: Sun Jul 21, 2002 4:13 pm Post subject: |
|
|
thanks metalhedd that would acomplish what I wont, but I have just one problem the command qpkg does not work on my system so do you happen to know what package happens to equipt this command. _________________ WOW! Its so dark in here I can't even see my self think. |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Sun Jul 21, 2002 4:35 pm Post subject: |
|
|
Try:
Code: |
/usr/lib/portage/bin/pkglist
|
or emerge gentoolkit to get qpkg (which wraps around pkglist for the list). |
|
Back to top |
|
|
khedspeth n00b
Joined: 20 Jul 2002 Posts: 4
|
Posted: Sun Jul 21, 2002 6:53 pm Post subject: pkglist to a file |
|
|
is there a way to get pkglist to write directly to a file? or is cut/paste the only option to get the output as a text file? |
|
Back to top |
|
|
StifflerStealth Retired Dev
Joined: 03 Jul 2002 Posts: 968
|
Posted: Sun Jul 21, 2002 8:42 pm Post subject: |
|
|
Since you have your system the way you want it, you could use a program like Norton Ghost and make a image of your partition. The store the image on another computer. If you do not have another computer ask a friend to bring his computer over and network them. Perferably a friend that has a copy of Norton ghost Then when you are don partitioning, use norton ghost to write all your files back. You might need to change you fstab file, but everything will be exactly as you let it. You do need windows to create the bootdisk though, but you can create a client and server bootdisk.
Enjoy |
|
Back to top |
|
|
Guest
|
Posted: Sun Jul 21, 2002 9:15 pm Post subject: Norton Ghost |
|
|
S/S
Sounds like a variation of Win software to mirror drives, used to ease
swapping an operating system ontl a new machine or drive ?
Thought M/S based stuff can't understand Linux file systems,
Esp if journaling type (XFS , Reiser, etc )
Had a very bad experience w/similar concept, low-level Dos, as Norton
usually is. Trashed my boot sector, lost all linux, only luck & very
esoteric utility I had restored a non-important W98 on IDE0 drive
Hope you are correct tho" for many reasons How would that apply to Raid ?
Thnx |
|
Back to top |
|
|
sisob Apprentice
Joined: 28 Jun 2002 Posts: 274 Location: Ireland
|
Posted: Sun Jul 21, 2002 9:29 pm Post subject: Re: pkglist to a file |
|
|
khedspeth wrote: | is there a way to get pkglist to write directly to a file? or is cut/paste the only option to get the output as a text file? |
The same as for any console command:
To use the out put of one program as the arguement for another:
_________________ Mark Finlay - Gnome Hacker of Sorts
Come join me on the Gnome User's Forum |
|
Back to top |
|
|
StifflerStealth Retired Dev
Joined: 03 Jul 2002 Posts: 968
|
Posted: Sun Jul 21, 2002 9:45 pm Post subject: |
|
|
Just for your info: Norton Ghost (lastest version) can read linux partitions, even ext3. |
|
Back to top |
|
|
|