Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Exporting your World for backup
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
noff
Guru
Guru


Joined: 11 Nov 2002
Posts: 388
Location: College Park, Maryland

PostPosted: Thu Jan 02, 2003 12:42 am    Post subject: Exporting your World for backup Reply with quote

Is there any way one could export their world file for and restore it later, so for an new install all I would have to do is
Code:
emerge -e world
and my system would be back to the way it is now.
_________________
What Larry was saying is that if you make it too easy for programmers, then poor programmers will be able to do things best left to good programmers, and will inevitably do them poorly. Everyone will suffer in the long term as a result." - Tom Chance
Back to top
View user's profile Send private message
m0pr0be
Guru
Guru


Joined: 29 Aug 2002
Posts: 308

PostPosted: Thu Jan 02, 2003 11:57 am    Post subject: Reply with quote

hi,

the world file is under /var/cache/edb/world. you can manipulate it to your like.

to get a list of installed packages (without duplicates), type:
Code:
qpkg --installed

you can pipe the output to some file and save that file.

you need the gentoolkit ebuild installed to run the qpkg command.

i'm not sure how to handle duplicates, when restoring your system.
anyway i would recommend to emerge your packages with --buildpkg everytime you emerge new packages. Then you can save your .tbz2 files under /usr/portage/packages/All over a reinstall and you can do emerge --usepkg world to save some time compiling.
Back to top
View user's profile Send private message
noff
Guru
Guru


Joined: 11 Nov 2002
Posts: 388
Location: College Park, Maryland

PostPosted: Fri Jan 31, 2003 7:29 pm    Post subject: Reply with quote

Is there anyway to get the exact version of the package without greping or something? The difference between xfree4.2.1-r2 and xfree-4.2.1-r3
_________________
What Larry was saying is that if you make it too easy for programmers, then poor programmers will be able to do things best left to good programmers, and will inevitably do them poorly. Everyone will suffer in the long term as a result." - Tom Chance
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Jan 31, 2003 8:15 pm    Post subject: Reply with quote

noff, does "qpkg -I -nc -v" do what you want?
_________________
For every higher wall, there is a taller ladder
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