Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I guess this subject requires clarification. Here's what I want to do.
I'm using gentoo, with a system that's up and running. I want to rebuild this system from scratch.
I'd like to download some ebuilds off the internet, and their dependencies, then burn the distfiles over on a DVD.
When I'm done doing that, I want to put these distfiles into the new gentoo system, and start building and compilling the system.
Basically, I want to download the distfiles while online before starting to rebuild the system offline.
Hoping that this thread doesn't end too quick... On my new system, how do I use my offline files afterwards? I can't just copy them back into the distfiles right?
Assuming you don't clean your distfiles when you run emerge, you can copy /usr/portage/distfiles/* to a new cdr/dvdr. You'll also want to copy /usr/portage/* so that that portage matches the distfiles you've already downloaded. The gentoo forums has a howto document to build your own live cd with all the distfiles you like. You can also script it to do an auto-install on boot time, sort of like an unattended install on Windows.
Keep the questions coming, I'm here all week...
Last edited by musicman_ace; 12-05-2005 at 06:49 PM.
So if I copy /usr/portage/* after running emerge -ef system && emerge -ef all_the_software_I_want_here. And copy the portage folder back, I should be OK.
You think /usr/portage would fit on a DVD? (with openoffice, kde, firefox, mozilla, neverball, gl-117?)
In order to build yourself a CD/DVD with contains all the information to do an Offline install, you need the following:
1. portage sync'd but only to the time when your distfiles were correct.
2. All the distfiles that match that portage date.
3. A live CD. You could hack your own live CD, or run the standard live CD and use the option to cache the CD to ram so you can mount a second CD. The second CD being the one with your portage and distfiles.
Once you have that, you can boot the Universal CD. copy portage and distfiles. Run any emerges that you downloaded when you used the -f option on emerge.
My previous post was slightly in-accurate. To download all the distfiles, you'd have to do system and world.
Code:
emerge -ef system && emerge -ef world
This would also read in the packages in the World file which will typically include 10-200MB more than just system.
Will that include an empty system (doing emerge -ef system && emerge -ef world) with the basics, or all the packages I have installed so far?
I don't want all the packages I have installed so far, but only a blank system and some packages I select for the new system.
So, I can
emerge --sync
emerge -ef system
emerge -ef world
cp -r /usr/portage* /home/backup/portage
burn it on an DVD
boot gentoo, load the system into the RAM (512MB of ram)
install the new portage snapshot
load the DVD
cp -r /mnt/cdrom/* /usr/portage/
(then go on with stage 2 install)
The -ef will download all installed software and its dependancies. When you use that to install for a new system, you will still have to choose what to install so the possiblity to clone your old system is there but it doesn't mean that the system will be cloned unless you emerge each of the same packages.
Your procedure should be something like
emerge --sync
emerge -ef system
emerge -ef world
cp -r /usr/portage* /home/backup/portage
burn it on an DVD
boot gentoo, load the system into the RAM (512MB of ram)
load the DVD
cp -r /mnt/cdrom/* /usr/portage/
Do whichever stage you like. You'll have the availability to do a stage1, stage2,or stage3
emerge -ef system will emerge not only what I want, but also every package I installed so far. I don't want that, I'd like if it emerge what's needed to get from stage2 to stage3 only, as if I didn't install anything yet.
If you've got a test system that you could install a base stage2 system on, then you could create a list of the packages installed as a stage2 and then remove those distfiles from your /usr/portage/distfiles directory. It is actually better to keep those those, because if you upgrade your gcc compiler and toolkit, you should rebuild 'system' so that all packages are compiled with the new gcc compiler and toolkit. If you don't, then only packages installed or upgraded since the gcc update are compiled with the new compiler. In the end, it is a matter of disk space, so you'll have to make that call.
How would I be able to get all distfiles so I could install anything offline? I'm trying to setup a Gentoo system at home and I only have dialup, which really is not the ideal for a Gentoo install. Would I just download all of the distfiles from a mirror and then burn them on multiple CD's or an external HDD?
i've answered this question in the previous posts, but here we go again.
1. You'll need a portage snapshot that matches the distfiles for that day.
2. (emerge -ef system) would download all packages currently installed.
3. (emerge -f packagename) would download all files for the specified packages. cron, udev, grep..
3. You could dowload all these thing then burn then to cd/DVD or use an Ext Hard drive and move the distfiles to /usr/portage/distfiles/
The -f on emerge will Fetch the files for a given package. If you fetch system then you get all packages that make up a base gentoo install. World would get all the packages you install since the install and any updated versions of those.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.