Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge Download Question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
layman82
n00b
n00b


Joined: 30 Jun 2003
Posts: 19

PostPosted: Mon Jun 30, 2003 3:42 am    Post subject: Emerge Download Question Reply with quote

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
View user's profile Send private message
Pindrop
Apprentice
Apprentice


Joined: 09 Jul 2002
Posts: 165
Location: Virginia, USA

PostPosted: Mon Jun 30, 2003 3:47 am    Post subject: Reply with quote

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
View user's profile Send private message
layman82
n00b
n00b


Joined: 30 Jun 2003
Posts: 19

PostPosted: Mon Jun 30, 2003 3:59 am    Post subject: Reply with quote

I am sorry , i still dont get it. Was my first one true or my second one
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Mon Jun 30, 2003 4:11 am    Post subject: Reply with quote

Your second guess was correct.
Back to top
View user's profile Send private message
layman82
n00b
n00b


Joined: 30 Jun 2003
Posts: 19

PostPosted: Mon Jun 30, 2003 4:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Pythonhead
Developer
Developer


Joined: 16 Dec 2002
Posts: 1801
Location: Redondo Beach, Republic of Calif.

PostPosted: Mon Jun 30, 2003 4:46 am    Post subject: Reply with quote

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
View user's profile Send private message
layman82
n00b
n00b


Joined: 30 Jun 2003
Posts: 19

PostPosted: Mon Jun 30, 2003 5:04 am    Post subject: Reply with quote

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
View user's profile Send private message
Brandy
Bodhisattva
Bodhisattva


Joined: 08 Jun 2003
Posts: 820
Location: New Zealand

PostPosted: Mon Jun 30, 2003 6:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum