Unix Technical Forum

changing portage directory

This is a discussion on changing portage directory within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> Hi to all, may I move the /usr/portage directory to /var/portage and replace in /usr the portage with a ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 09:52 AM
Silver Surfer
 
Posts: n/a
Default changing portage directory

Hi to all,

may I move the /usr/portage directory to /var/portage and replace in /usr
the portage with a symlink? Are there some weird effect in this operation?

My usr directory is too big

thanks

The Surfer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 09:52 AM
Hekaton Keires
 
Posts: n/a
Default Re: changing portage directory

in Silver Surfer's honest opinion:

> Hi to all,
>
> may I move the /usr/portage directory to /var/portage and replace in /usr
> the portage with a symlink? Are there some weird effect in this operation?
>
> My usr directory is too big
>
> thanks
>
> The Surfer


from /etc/make.conf.example:

[...]
# PORTDIR is the location of the portage tree. This is the repository
# for all profile information as well as all ebuilds. This directory
# itself can reach 200M. WE DO NOT RECOMMEND that you change this.
#PORTDIR=/usr/portage
[...]

can someone explain why isn't it recommended? for emerge sync? or generic
emerge/ebuild operations?

PS:
by the way i think it shouldn't make any trouble using symlink
to /var/portage. also you could resize your partitions with partition
editor 'parted' (supports ext, fat, reiserfs and swap).
--
Hekaton Keires,
En to phronein maedhen aedistos bios.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 09:52 AM
Hekaton Keires
 
Posts: n/a
Default Re: changing portage directory

in Hekaton Keires's honest opinion:

>> My usr directory is too big


> # for all profile information as well as all ebuilds. This directory
> # itself can reach 200M.


the only directories that should increase in size drastically should be

/usr/portage/distfiles
/usr/portage/pakcages

so maybe you'd rather move only that ones to /var/portage and then create
symlinks to them (in order prevent any possible problem with db)

try this

du -sh --exclude=distfiles --exclude=packages /usr/portage

to see how big is your PORTDIR without tarballs.
--
Hekaton Keires,
En to phronein maedhen aedistos bios.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 09:52 AM
Silver Surfer
 
Posts: n/a
Default Re: changing portage directory

Il Tue, 28 Dec 2004 12:17:04 +0100, Hekaton Keires ha scritto:

> in Hekaton Keires's honest opinion:
>
>>> My usr directory is too big

>
>> # for all profile information as well as all ebuilds. This directory
>> # itself can reach 200M.

>
> the only directories that should increase in size drastically should be
>
> /usr/portage/distfiles
> /usr/portage/pakcages
>
> so maybe you'd rather move only that ones to /var/portage and then create
> symlinks to them (in order prevent any possible problem with db)
>
> try this
>
> du -sh --exclude=distfiles --exclude=packages /usr/portage
>
> to see how big is your PORTDIR without tarballs.


Thanks I will move only distribution files and binaries pkgs !

bye
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 09:52 AM
Bobby D. Bryant
 
Posts: n/a
Default Re: changing portage directory

On Tue, 28 Dec 2004, Hekaton Keires <remove_this_hekatonkeires@hotmail.com> wrote:

> in Hekaton Keires's honest opinion:
>
>>> My usr directory is too big

>
>> # for all profile information as well as all ebuilds. This directory
>> # itself can reach 200M.

>
> the only directories that should increase in size drastically should be
>
> /usr/portage/distfiles
> /usr/portage/pakcages
>
> so maybe you'd rather move only that ones to /var/portage and then create
> symlinks to them (in order prevent any possible problem with db)


Move them and modify the variables in /etc/make.conf instead of setting
up a symbolic link.

This quote from my modified /etc/make.conf shows how I moved a bunch of
stuff to my /saves partition:

# Relocate some stuff off the root partition:
#
# PORTAGE_TMPDIR is the location portage will use for compilations and
# temporary storage of data. This can get VERY large depending upon
# the application being installed.
PORTAGE_TMPDIR=/saves/portage/temp
#
# DISTDIR is where all of the source code tarballs will be placed for
# emerges. The source code is maintained here unless you delete
# it. The entire repository of tarballs for gentoo is 9G. This is
# considerably more than any user will ever download. 2-3G is
# a large DISTDIR.
DISTDIR=/saves/portage/sources
#
# PKGDIR is the location of binary packages that you can have created
# with '--buildpkg' or '-b' while emerging a package. This can get
# upto several hundred megs, or even a few gigs.
PKGDIR=/saves/portage/packages
#
# PORT_LOGDIR is the location where portage will store all the logs it
# creates from each individual merge. They are stored as NNNN-$PF.log
# in the directory specified. This is disabled until you enable it by
# providing a directory. Permissions will be modified as needed IF the
# directory exists, otherwise logging will be disabled. NNNN is the
# increment at the time the log is created. Logs are thus sequential.
PORT_LOGDIR=/saves/portage/logs
#
# PORTDIR_OVERLAY is a directory where local ebuilds may be stored without
# concern that they will be deleted by rsync updates. Default is not
# defined.
PORTDIR_OVERLAY=/saves/portage/saved-ebuilds



--
Bobby Bryant
Austin, Texas
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:18 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com