LinuxQuestions.org
Visit Jeremy's Blog.
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 12-14-2009, 05:30 AM   #1
coffeecoffee
Member
 
Registered: Feb 2009
Posts: 58

Rep: Reputation: 16
Why do we need a portage snapshot on disk?


Hi

I am new to Gentoo, and just wondering why you need to have the portage snapshot on disk in order to emerge packages? The snapshot is quite large, can't you get away with just downloading off the internet, the way apt-get does for debian? What is the benefit of having the snapshot?

Thanks
 
Old 12-14-2009, 07:42 AM   #2
AutoBot
Member
 
Registered: Mar 2002
Location: I can see you from here.
Distribution: Gentoo 1.3b
Posts: 184

Rep: Reputation: 34
Well originally it was to speed things up, I don't think Daniel Robbins knew that the package database would grow to be the size it is today when he initially thought it up.
 
Old 12-14-2009, 05:42 PM   #3
coffeecoffee
Member
 
Registered: Feb 2009
Posts: 58

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by AutoBot View Post
Well originally it was to speed things up, I don't think Daniel Robbins knew that the package database would grow to be the size it is today when he initially thought it up.
I guess portage isn't as elegant as people make it out to be then :/
 
Old 12-15-2009, 08:29 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by coffeecoffee View Post
I guess portage isn't as elegant as people make it out to be then :/
I don't get your point, but I don't know what did you hear or read about the portage smartness, so I can't tell you if it's true or not either.

First, *every* single distro I know has a package database on disk, usually somewhere under var (ie. /var/lib/rpm, or whatever applies to your distro).

Second, portage is not that big, it's only problem is that being fs-based it is subject to the fs limitations (ie. every file takes a block, even if it's not completely full). If you format your portage partition with a block size of 1024 (or use a loopback filesystem formatted with that block size) you will be able to store it in around 200mb. Database driven package systems will not have this problems since they don't depend on the fs being used. Even with a standard block size of 4096 bytes, it should still fit under 1GB, not a big deal for nowadays standards really.

What takes most of the space is $DISTDIR, which is where the sources are stored. If that bothers you, then delete it daily, people with slow connections definitely want to keep the sources at least for some time, in case they need to reinstall a given package. If you are bothered because of the size of the source files then probably a source distro is not for you. The source packages, specially for the bigger ones, will be much bigger than a binary package. There's no way around that.
 
Old 12-15-2009, 06:01 PM   #5
coffeecoffee
Member
 
Registered: Feb 2009
Posts: 58

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by i92guboj View Post
I don't get your point, but I don't know what did you hear or read about the portage smartness, so I can't tell you if it's true or not either.

First, *every* single distro I know has a package database on disk, usually somewhere under var (ie. /var/lib/rpm, or whatever applies to your distro).

Second, portage is not that big, it's only problem is that being fs-based it is subject to the fs limitations (ie. every file takes a block, even if it's not completely full). If you format your portage partition with a block size of 1024 (or use a loopback filesystem formatted with that block size) you will be able to store it in around 200mb. Database driven package systems will not have this problems since they don't depend on the fs being used. Even with a standard block size of 4096 bytes, it should still fit under 1GB, not a big deal for nowadays standards really.

What takes most of the space is $DISTDIR, which is where the sources are stored. If that bothers you, then delete it daily, people with slow connections definitely want to keep the sources at least for some time, in case they need to reinstall a given package. If you are bothered because of the size of the source files then probably a source distro is not for you. The source packages, specially for the bigger ones, will be much bigger than a binary package. There's no way around that.

Thanks for the clarification, I knew I was missing something!
 
  


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
ok! loaded gentoo tarball. now need help with portage snapshot download randell6564 Linux - Software 2 11-24-2005 04:47 PM
Gentoo: Help with portage. Scorlibrian Linux - Distributions 5 07-02-2005 07:52 AM
Portage on Fedora? JediMasterTux Linux - Newbie 2 07-09-2004 11:54 PM
Using Portage Snapshot Error ? krissly1 Linux - Software 1 12-24-2003 02:46 PM
Portage Sir Gawain Slackware 4 11-06-2003 02:26 AM

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

All times are GMT -5. The time now is 05:56 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