View previous topic :: View next topic |
Author |
Message |
layman82 n00b

Joined: 30 Jun 2003 Posts: 19
|
Posted: Mon Jun 30, 2003 3:42 am Post subject: Emerge Download Question |
|
|
I have not used gentoo , but i have a question about Emerge/Ebuild ,
When giving the command : emerge application1
and application1 requires application2 .
So does the emerge/ebuild first Dowloads both these applications and then starts the overall compilation.
(or)
It goes out in the following schema :: Downloads application2 , compiles it.
Then Downloads application1 and compiles it.
Hope it is legible? |
|
Back to top |
|
 |
Pindrop Apprentice


Joined: 09 Jul 2002 Posts: 165 Location: Virginia, USA
|
Posted: Mon Jun 30, 2003 3:47 am Post subject: |
|
|
That is correct. The 'ebuild' (script that tells emerge what to do) lists the dependencies for each package/program, and will download, compile, and install all packages needed to compile the initial program that you are merging. |
|
Back to top |
|
 |
layman82 n00b

Joined: 30 Jun 2003 Posts: 19
|
Posted: Mon Jun 30, 2003 3:59 am Post subject: |
|
|
I am sorry , i still dont get it. Was my first one true or my second one |
|
Back to top |
|
 |
PowerFactor Veteran


Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Mon Jun 30, 2003 4:11 am Post subject: |
|
|
Your second guess was correct. |
|
Back to top |
|
 |
layman82 n00b

Joined: 30 Jun 2003 Posts: 19
|
Posted: Mon Jun 30, 2003 4:13 am Post subject: |
|
|
Wont that will have major Effect on Internet Connection Time period.
As the internet time will be wasted during long compilations.
I thought emerge will download all the required packages and then start compilation one by one.
What will be your view on this |
|
Back to top |
|
 |
Pythonhead Developer


Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Mon Jun 30, 2003 4:46 am Post subject: |
|
|
You can fetch all the packages first, then hang up and compile them all.
There are people who have come up with various ways to download in the background while compiling, but they aren't in the official portage system (yet). |
|
Back to top |
|
 |
layman82 n00b

Joined: 30 Jun 2003 Posts: 19
|
Posted: Mon Jun 30, 2003 5:04 am Post subject: |
|
|
You said , it is possible to download all the required packages and then hangup the internet and start compiling.
Can you briefly explain this please? |
|
Back to top |
|
 |
Brandy Bodhisattva


Joined: 08 Jun 2003 Posts: 820 Location: New Zealand
|
Posted: Mon Jun 30, 2003 6:45 am Post subject: |
|
|
Moved from Installing Gentoo to Portage & Programming.
You can download a package (and all its dependencies) with the following:
Code: |
emerge --fetchonly package_name
|
The --fetchonly option indicates that source files needed for compiling package_name (and all its dependencies) will be downloaded only; nothing will yet be compiled.
Then you can type:
Code: |
emerge package_name
|
to compile package_name and all its dependencies without having to download anything, since the source files will be sitting on your machine. There are a couple of good guides about portage here and here.
Ciao, Brandy _________________ Faber est suae quisque fortunae. |
|
Back to top |
|
 |
|