LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This 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


Reply
  Search this Thread
Old 12-03-2005, 12:57 PM   #1
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
Talking getting distfiles for offline installation.


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.

How do I do that?

Thanks
 
Old 12-04-2005, 12:44 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
I'm still not sure I followed it correctly, but I'll give it a shot.

To get all the distfiles needed to rebuild your running machine with all dependancies.

Code:
emerge -ef system && emerge -ef world
emtpy tree and fetch-only will download all the distfiles and ebuilds. Then you can copy /usr/portage/distfiles/* to your new DVD.


Is that what you were asking?
 
Old 12-04-2005, 11:06 AM   #3
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Yes!!! That's exactly it! Thank you!
 
Old 12-05-2005, 06:08 PM   #4
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843

Original Poster
Blog Entries: 1

Rep: Reputation: 30
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?
 
Old 12-05-2005, 06:48 PM   #5
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
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.
 
Old 12-05-2005, 07:25 PM   #6
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Great!

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?)

thanks musicman_ace
 
Old 12-06-2005, 12:15 PM   #7
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
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.
 
Old 12-06-2005, 05:07 PM   #8
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843

Original Poster
Blog Entries: 1

Rep: Reputation: 30
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)

right?

thanks
 
Old 12-07-2005, 08:25 AM   #9
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
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
 
Old 12-07-2005, 05:35 PM   #10
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843

Original Poster
Blog Entries: 1

Rep: Reputation: 30
thanks musicman_ace
 
Old 12-20-2005, 07:32 PM   #11
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843

Original Poster
Blog Entries: 1

Rep: Reputation: 30
if your not gone still, I've got a problem.

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.

thanks
 
Old 12-21-2005, 09:48 AM   #12
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
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.
 
Old 12-21-2005, 10:09 AM   #13
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843

Original Poster
Blog Entries: 1

Rep: Reputation: 30
I have some boxes laying around waiting to be used, I'll take one and carry on with your advice

thanks
 
Old 12-28-2005, 08:58 AM   #14
jesus_phreak
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
Offline Install

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?

Thanks in advance!
 
Old 12-28-2005, 10:19 AM   #15
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Offline CD... rajsun Programming 1 09-23-2005 04:17 PM
LQ offline ? floppywhopper LQ Suggestions & Feedback 2 08-31-2005 10:03 AM
Was LQ offline??? power_pole LQ Suggestions & Feedback 4 05-18-2005 08:42 AM
gentoo sound, and distfiles pauloref Linux - Newbie 19 10-10-2004 04:02 PM
Dropline is offline? JimmyJ Slackware 22 04-29-2004 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 10:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration