LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices

Reply
 
Search this Thread
Old 05-08-2012, 03:07 AM   #1
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 432

Rep: Reputation: 19
Can emerge export a list of files to fetch?


Hi,

Due to overcast days and a dependency on PV panels for my power, I am reluctant to leave my computer on overnight to fetch updates on my off-peak quota. I do have a Buffalo Linkstation NAS box running, but it appears to run a Debian variant.

It would be nice if I could run emerge and export a list of files needed so the NAS box could get them on my off-peak quota.

Having already patched my copy of emerge to print a timestamp on the ">>> Emerge" line, I could probably add an export function if it does not already exist.

Once downloaded, could the files just be copied to /usr/portage/distfiles, or is there a record of downloads that needs to be updated as well?

Thanks
Jim

ps It would be even nicer if I could put Gentoo on the NAS box...
 
Old 05-09-2012, 02:17 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,036

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Quote:
Originally Posted by CollieJim View Post
Hi,

Due to overcast days and a dependency on PV panels for my power, I am reluctant to leave my computer on overnight to fetch updates on my off-peak quota. I do have a Buffalo Linkstation NAS box running, but it appears to run a Debian variant.

It would be nice if I could run emerge and export a list of files needed so the NAS box could get them on my off-peak quota.

Having already patched my copy of emerge to print a timestamp on the ">>> Emerge" line, I could probably add an export function if it does not already exist.
Ugh. I'd rather just use a shell function and run the time command before emerge starts, if what you want is to know the date when it started. In any case, be careful with this kind of patches. And when something fails, be sure you first try the unpatched version of emerge before reporting anything. In any case, and to answer your question, all you need -if I understood correctly- is "emerge -pf" and simple shell redirection.

Example:

Code:
emerge -pf fluxbox > filelist.txt
If you, for some reason, want the full dependency list, you can do

Code:
emerge -pef fluxbox > filelist.txt
This file will contain a simple plain-text list of URLs, so, it can be used under most download managers, for example, in wget via the -i|--input-file parameter. If you want to make sure that it does what you have in mind, you can try first without redirecting to a file.

Quote:
Once downloaded, could the files just be copied to /usr/portage/distfiles, or is there a record of downloads that needs to be updated as well?
No artifice in there. If the files are found in $DISTDIR (usually /usr/portage/distfiles), then they will be used. That is, as long as the checksums match. Else, they will be deleted and re-downloaded.

Quote:
ps It would be even nicer if I could put Gentoo on the NAS box...
Probably possible, since it already has linux onto it. A thing to try in the future

Last edited by i92guboj; 05-09-2012 at 02:19 AM.
 
1 members found this post helpful.
Old 05-09-2012, 02:53 AM   #3
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 432

Original Poster
Rep: Reputation: 19
Thanks.

The reason for wanting timestamps is that packages like xulrunner and webkit can take over 2 hours to compile and it would be nice to know when they started.
 
Old 05-09-2012, 03:01 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,036

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
There's an emerge log in /var/log/emerge.log, unfortunately, someone decided that time signatures in it should not be human readable :P

The good news is that there's a package called app-portage/genlop in portage, which parses this log and even can give you estimations for future merges, based on the previous history. It can also query online, and give estimations based on similar cpus and similar USE and CFLAGS settings. So I heard, at least. Admittedly, I rarely use it because I never needed that kind of info myself.

Last edited by i92guboj; 05-09-2012 at 03:03 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How do I export my contact list from 8GB Iphone(jailbroken) to my EeePC? amirbtalai Linux - Newbie 1 01-14-2011 01:47 PM
mplayer fetch subtitles option: --fetch-subs frenchn00b Linux - General 1 11-09-2009 11:21 PM
how to export djvu files to pdf files sagsriv Linux - Software 2 08-24-2008 11:23 AM
Problem - Cannot fetch remote server list AndrewMSConvert Suse/Novell 7 10-14-2005 11:18 PM
gentoo install emerge fetch errors? chunlee Linux - Distributions 6 12-17-2004 11:10 AM


All times are GMT -5. The time now is 01:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration