public inbox for gentoo-server@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-server] trim down portage directory
@ 2008-04-08  8:58 Tomasz Lutelmowski
  2008-04-08 11:51 ` Andrew Gaffney
  0 siblings, 1 reply; 7+ messages in thread
From: Tomasz Lutelmowski @ 2008-04-08  8:58 UTC (permalink / raw
  To: gentoo-server

[-- Attachment #1: Type: text/html, Size: 1099 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-server] trim down portage directory
  2008-04-08  8:58 [gentoo-server] trim down portage directory Tomasz Lutelmowski
@ 2008-04-08 11:51 ` Andrew Gaffney
  2008-04-08 13:07   ` Tomasz Lutelmowski
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Gaffney @ 2008-04-08 11:51 UTC (permalink / raw
  To: gentoo-server

Tomasz Lutelmowski wrote:
> 
> Hello,
> 
> Here is one-liner which can be helpful if you want to trim down your gentoo
> installation, particulary /usr/portage directory and/or lower emerge 
> --sync times / save bandwidth (requires app-portage/portage-utils):
> 
> (echo -e "+ profiles**\n+ eclass**\n+ metadata*\n+ metadata/cache*\n+ 
> metadata/dtd**\n+ metadata/glsa**\n+ metadata/news**\n+ scripts**"; for 
> f in `qlist -IC | cut -f1 -d'/' | sort | uniq | sort`; do echo "+ $f**"; 
> echo "+ metadata/cache/$f**"; done; echo "- */") > 
> /etc/portage/rsync_excludes
> 
> you need also to add this line to make.conf
> 
> PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"

This is a bit short-sighted. Using this doesn't allow you to install any 
additional packages (unless the package and its dependencies happen to be in the 
category of a package you already have installed) and will break dep resolution 
when the dependencies change for any packages that you currently have installed.

-- 
Andrew Gaffney                                 http://dev.gentoo.org/~agaffney/
Gentoo Linux Developer             Catalyst/Installer + x86 release coordinator
-- 
gentoo-server@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-server] trim down portage directory
  2008-04-08 11:51 ` Andrew Gaffney
@ 2008-04-08 13:07   ` Tomasz Lutelmowski
  2008-04-08 13:43     ` Brian Kroth
  0 siblings, 1 reply; 7+ messages in thread
From: Tomasz Lutelmowski @ 2008-04-08 13:07 UTC (permalink / raw
  To: gentoo-server

On Tue, 08 Apr 2008 06:51:48 -0500, Andrew Gaffney wrote
> Tomasz Lutelmowski wrote:
> > 
> > Hello,
> > 
> > Here is one-liner which can be helpful if you want to trim down your gentoo
> > installation, particulary /usr/portage directory and/or lower emerge 
> > --sync times / save bandwidth (requires app-portage/portage-utils):
> > 
> > (echo -e "+ profiles**\n+ eclass**\n+ metadata*\n+ metadata/cache*\n+ 
> > metadata/dtd**\n+ metadata/glsa**\n+ metadata/news**\n+ scripts**"; for 
> > f in `qlist -IC | cut -f1 -d'/' | sort | uniq | sort`; do echo "+ $f**"; 
> > echo "+ metadata/cache/$f**"; done; echo "- */") > 
> > /etc/portage/rsync_excludes
> > 
> > you need also to add this line to make.conf
> > 
> > PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
> 
> This is a bit short-sighted. Using this doesn't allow you to install 
> any additional packages (unless the package and its dependencies 
> happen to be in the category of a package you already have installed)
>  and will break dep resolution when the dependencies change for any 
> packages that you currently have installed.


This is true, anyway I'm using it on all production servers with stable and
final set of packages. 
-- 
gentoo-server@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-server] trim down portage directory
  2008-04-08 13:07   ` Tomasz Lutelmowski
@ 2008-04-08 13:43     ` Brian Kroth
  2008-04-08 15:01       ` gibbonsr-ml
  0 siblings, 1 reply; 7+ messages in thread
From: Brian Kroth @ 2008-04-08 13:43 UTC (permalink / raw
  To: Tomasz Lutelmowski; +Cc: gentoo-server

[-- Attachment #1: Type: text/plain, Size: 1300 bytes --]

Tomasz Lutelmowski <tomek@lutel.pl> 2008-04-08 15:07:
> On Tue, 08 Apr 2008 06:51:48 -0500, Andrew Gaffney wrote
> > Tomasz Lutelmowski wrote:
> > > 
> > > Hello,
> > > 
> > > Here is one-liner which can be helpful if you want to trim down your gentoo
> > > installation, particulary /usr/portage directory and/or lower emerge 
> > > --sync times / save bandwidth (requires app-portage/portage-utils):
> > > 
> > > (echo -e "+ profiles**\n+ eclass**\n+ metadata*\n+ metadata/cache*\n+ 
> > > metadata/dtd**\n+ metadata/glsa**\n+ metadata/news**\n+ scripts**"; for 
> > > f in `qlist -IC | cut -f1 -d'/' | sort | uniq | sort`; do echo "+ $f**"; 
> > > echo "+ metadata/cache/$f**"; done; echo "- */") > 
> > > /etc/portage/rsync_excludes
> > > 
> > > you need also to add this line to make.conf
> > > 
> > > PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
> > 
> > This is a bit short-sighted. Using this doesn't allow you to install 
> > any additional packages (unless the package and its dependencies 
> > happen to be in the category of a package you already have installed)
> >  and will break dep resolution when the dependencies change for any 
> > packages that you currently have installed.

I agree.  Why not just use an NFS mounted PORTDIR?

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 2192 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-server] trim down portage directory
  2008-04-08 13:43     ` Brian Kroth
@ 2008-04-08 15:01       ` gibbonsr-ml
  2008-04-09  5:37         ` Petr Podrabsky
  0 siblings, 1 reply; 7+ messages in thread
From: gibbonsr-ml @ 2008-04-08 15:01 UTC (permalink / raw
  To: gentoo-server

I use a combination of the suggested on my Servers.  I use a a NFS mounted portdir, 
and my exclude list is just a lit of all the KDE-*, gnome-*, xfce-*, and x11-*.

I don't use X so it seems to work pretty well, and it still keeps the re-cache time
to a minimal. 

----- Original Message -----
From: "Brian Kroth" <bpkroth@wisc.edu>
To: "Tomasz Lutelmowski" <tomek@lutel.pl>
Cc: gentoo-server@lists.gentoo.org
Sent: Tuesday, April 8, 2008 8:43:47 AM GMT -06:00 US/Canada Central
Subject: Re: [gentoo-server] trim down portage directory

Tomasz Lutelmowski <tomek@lutel.pl> 2008-04-08 15:07:
> On Tue, 08 Apr 2008 06:51:48 -0500, Andrew Gaffney wrote
> > Tomasz Lutelmowski wrote:
> > > 
> > > Hello,
> > > 
> > > Here is one-liner which can be helpful if you want to trim down your gentoo
> > > installation, particulary /usr/portage directory and/or lower emerge 
> > > --sync times / save bandwidth (requires app-portage/portage-utils):
> > > 
> > > (echo -e "+ profiles**\n+ eclass**\n+ metadata*\n+ metadata/cache*\n+ 
> > > metadata/dtd**\n+ metadata/glsa**\n+ metadata/news**\n+ scripts**"; for 
> > > f in `qlist -IC | cut -f1 -d'/' | sort | uniq | sort`; do echo "+ $f**"; 
> > > echo "+ metadata/cache/$f**"; done; echo "- */") > 
> > > /etc/portage/rsync_excludes
> > > 
> > > you need also to add this line to make.conf
> > > 
> > > PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
> > 
> > This is a bit short-sighted. Using this doesn't allow you to install 
> > any additional packages (unless the package and its dependencies 
> > happen to be in the category of a package you already have installed)
> >  and will break dep resolution when the dependencies change for any 
> > packages that you currently have installed.

I agree.  Why not just use an NFS mounted PORTDIR?


-- 
Ryan Gibbons
817.657.1780
gibbonsr@routedtechnologies.com
-- 
gentoo-server@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-server] trim down portage directory
  2008-04-08 15:01       ` gibbonsr-ml
@ 2008-04-09  5:37         ` Petr Podrabsky
  2008-04-09 16:52           ` Matthias Bethke
  0 siblings, 1 reply; 7+ messages in thread
From: Petr Podrabsky @ 2008-04-09  5:37 UTC (permalink / raw
  To: gentoo-server

Hi,

and what about way back. If you need to migrate host on desktop?

Petr
-- 
gentoo-server@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-server] trim down portage directory
  2008-04-09  5:37         ` Petr Podrabsky
@ 2008-04-09 16:52           ` Matthias Bethke
  0 siblings, 0 replies; 7+ messages in thread
From: Matthias Bethke @ 2008-04-09 16:52 UTC (permalink / raw
  To: gentoo-server

[-- Attachment #1: Type: text/plain, Size: 426 bytes --]

Hi Petr,
on Wed, Apr 09, 2008 at 07:37:42AM +0200, you wrote:
> and what about way back. If you need to migrate host on desktop?

Just remove the excludes file (or replace it with an empty file to keep
rsync happy), and things will be back to normal upon your next sync.

cheers,
	Matthias
-- 
I prefer encrypted and signed messages. KeyID: FAC37665
Fingerprint: 8C16 3F0A A6FC DF0D 19B0  8DEF 48D9 1700 FAC3 7665

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-04-09 16:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-08  8:58 [gentoo-server] trim down portage directory Tomasz Lutelmowski
2008-04-08 11:51 ` Andrew Gaffney
2008-04-08 13:07   ` Tomasz Lutelmowski
2008-04-08 13:43     ` Brian Kroth
2008-04-08 15:01       ` gibbonsr-ml
2008-04-09  5:37         ` Petr Podrabsky
2008-04-09 16:52           ` Matthias Bethke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox