Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

How can I get all the distfiles for a given portage

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
jamesm
n00b
n00b
Posts: 22
Joined: Fri Jun 13, 2003 10:37 am

How can I get all the distfiles for a given portage

  • Quote

Post by jamesm » Wed Mar 19, 2008 12:32 am

Hi,

I have a Gentoo install from a month or so ago and I've deployed it to half a dozen or so machines.

I'd like to take a snapshot of the distfiles needed for those machines and store them away.
Is this possible?
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

Re: How can I get all the distfiles for a given portage

  • Quote

Post by i92guboj » Wed Mar 19, 2008 12:38 am

jamesm wrote:Hi,

I have a Gentoo install from a month or so ago and I've deployed it to half a dozen or so machines.

I'd like to take a snapshot of the distfiles needed for those machines and store them away.
Is this possible?
You do mean "all the distfiles for the installed packages", don't you?

In that case, just "emerge -eD world". All the distfiles will be downloaded (except of course, those that need manual fetching because of licensing issues).
Top
Naib
Watchman
Watchman
User avatar
Posts: 6101
Joined: Fri May 21, 2004 9:42 pm
Location: Removed by Neddy
Contact:
Contact Naib
Website

Re: How can I get all the distfiles for a given portage

  • Quote

Post by Naib » Wed Mar 19, 2008 12:40 am

i92guboj wrote:
jamesm wrote:Hi,

I have a Gentoo install from a month or so ago and I've deployed it to half a dozen or so machines.

I'd like to take a snapshot of the distfiles needed for those machines and store them away.
Is this possible?
You do mean "all the distfiles for the installed packages", don't you?

In that case, just "emerge -eD world". All the distfiles will be downloaded (except of course, those that need manual fetching because of licensing issues).
you mean emerge -ef world
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

  • Quote

Post by i92guboj » Wed Mar 19, 2008 12:48 am

Yes. Thanks for the correction, it was a typo. :lol:
Top
jamesm
n00b
n00b
Posts: 22
Joined: Fri Jun 13, 2003 10:37 am

Re: How can I get all the distfiles for a given portage

  • Quote

Post by jamesm » Wed Mar 19, 2008 12:51 am

i92guboj wrote: You do mean "all the distfiles for the installed packages", don't you?
No, all the distfiles for the ebuilds in that machine's idea of portage. So if we decide six months from now to install foobarX we'll already have the distfiles for the packages and its dependencies.
Top
Naib
Watchman
Watchman
User avatar
Posts: 6101
Joined: Fri May 21, 2004 9:42 pm
Location: Removed by Neddy
Contact:
Contact Naib
Website

Re: How can I get all the distfiles for a given portage

  • Quote

Post by Naib » Wed Mar 19, 2008 12:55 am

jamesm wrote:
i92guboj wrote: You do mean "all the distfiles for the installed packages", don't you?
No, all the distfiles for the ebuilds in that machine's idea of portage. So if we decide six months from now to install foobarX we'll already have the distfiles for the packages and its dependencies.
you mean freeze the tree at a certain data AND d/l every src possible in the tree even tho you may/may not use any/all of them?
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

Re: How can I get all the distfiles for a given portage

  • Quote

Post by i92guboj » Wed Mar 19, 2008 1:19 am

jamesm wrote:
i92guboj wrote: You do mean "all the distfiles for the installed packages", don't you?
No, all the distfiles for the ebuilds in that machine's idea of portage. So if we decide six months from now to install foobarX we'll already have the distfiles for the packages and its dependencies.
You can certainly do this... But it's an insane amount of distfiles probably.

EDIT
Correction.

Code: Select all

cd /usr/portage/; find -name '*.ebuild' | while read ebuild; do ebuild=${ebuild/.ebuild/}; echo emerge --nodeps --fetchonly =${ebuild/.\//}; done
/EDIT

Not tested. But it should work, sit down and wait. :lol:
Top
jamesm
n00b
n00b
Posts: 22
Joined: Fri Jun 13, 2003 10:37 am

Re: How can I get all the distfiles for a given portage

  • Quote

Post by jamesm » Wed Mar 19, 2008 1:36 am

i92guboj wrote: EDIT
Correction.

Code: Select all

cd /usr/portage/; find -name '*.ebuild' | while read ebuild; do ebuild=${ebuild/.ebuild/}; echo emerge --nodeps --fetchonly =${ebuild/.\//}; done
/EDIT

Not tested. But it should work, sit down and wait. :lol:
Great! its a good start at least.

Thanks i92guboj!
Top
jamesm
n00b
n00b
Posts: 22
Joined: Fri Jun 13, 2003 10:37 am

Re: How can I get all the distfiles for a given portage

  • Quote

Post by jamesm » Wed Mar 19, 2008 1:37 am

Naib wrote: you mean freeze the tree at a certain data AND d/l every src possible in the tree even tho you may/may not use any/all of them?
Yep; i92guboj looks like he's given me enough to start the process - but thanks for your help too!
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

Re: How can I get all the distfiles for a given portage

  • Quote

Post by i92guboj » Wed Mar 19, 2008 1:40 am

jamesm wrote:
i92guboj wrote: EDIT
Correction.

Code: Select all

cd /usr/portage/; find -name '*.ebuild' | while read ebuild; do ebuild=${ebuild/.ebuild/}; echo emerge --nodeps --fetchonly =${ebuild/.\//}; done
/EDIT

Not tested. But it should work, sit down and wait. :lol:
Great! its a good start at least.

Thanks i92guboj!
Well, if it looks like what you want, then just remove the "echo" and the commands will be run, downloading all the stuff.
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

  • Quote

Post by i92guboj » Wed Mar 19, 2008 1:50 am

Gosh, I should probably check the things before posting.

This works and it's simpler.

Code: Select all

cd /usr/portage/; find -type d | while read ebuild; do emerge --nodeps --fetchonly ${ebuild/.\//}; done
Top
Post Reply

11 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic