Re: [gentoo-user] Need drive space, what to delete?

2005-12-06 Thread Walter Dnes
On Sun, Dec 04, 2005 at 10:45:41AM -0700, Richard Fish wrote

 In addition to Holly's comments, I would take a look at the
 output of emerge --pretend --prune.  It is likely that you have
 some slotted packages that you do not use anymore and can delete.

  *DON'T* do that.  It appears that emerge --pretend --prune blindly
tells you to delete all but one version of a package.  That can be a
*BD* idea.  Here is part of its output on my system...

 x11-libs/gtk+
selected: 1.2.10-r11
   protected: 2.6.10-r1
 omitted: none

 sys-devel/automake
selected: 1.5 1.6.3 1.7.9-r1 1.4_p6 1.8.5-r3
   protected: 1.9.6-r1
 omitted: none

 sys-devel/autoconf
selected: 2.13
   protected: 2.59-r6
 omitted: none


  But emerge --pretend --emptytree xmms on my system wants (amongst
other things)...

[ebuild  N] sys-devel/autoconf-2.13
[ebuild  N] sys-devel/autoconf-2.59-r6

[ebuild  N] sys-devel/automake-1.5
[ebuild  N] sys-devel/automake-1.8.5-r3
[ebuild  N] sys-devel/automake-1.6.3
[ebuild  N] sys-devel/automake-1.7.9-r1
[ebuild  N] sys-devel/automake-1.4_p6
[ebuild  N] sys-devel/automake-wrapper-1-r1
[ebuild  N] sys-devel/automake-1.9.6-r1

[ebuild  N] x11-libs/gtk+-1.2.10-r11

  That's just 1 app.  I'm sure there are others that would experience
similar breakage.  If you emerge --pretend --emptytree --world and an
old version listed for deletion by --prune does *NOT* show up, you'll
probably be safe removing it.  Maybe emerge --pretend --prune needs to
run emerge --pretend --emptytree --world by default, and use its
output as a sanity-check before recommending deletions.

-- 
Walter Dnes [EMAIL PROTECTED] In linux /sbin/init is Job #1
My musings on technology and security at http://tech_sec.blog.ca
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Need drive space, what to delete?

2005-12-06 Thread Marc Morrisette
I agree...never ever use prune unless it is only removing something you WANT to remove that was installed in a new slot. The only times I've ever used it are to remove vanilla-sources-2.6.12.5 once I got 
2.16.14.2 set up, and to remove gcc-3.3.6 once 3.4.4 was set up. It's a very dangerous option, the only reason I used it in those cases is because it took less typing than emerge -C with the exact version, and I KNEW I wanted to remove what it was removing.
On 12/7/05, Walter Dnes [EMAIL PROTECTED] wrote:
On Sun, Dec 04, 2005 at 10:45:41AM -0700, Richard Fish wrote In addition to Holly's comments, I would take a look at the output of emerge --pretend --prune.It is likely that you have some slotted packages that you do not use anymore and can delete.
*DON'T* do that.It appears that emerge --pretend --prune blindlytells you to delete all but one version of a package.That can be a*BD* idea.Here is part of its output on my system...
 x11-libs/gtk+selected: 1.2.10-r11 protected: 2.6.10-r1 omitted: none sys-devel/automakeselected: 1.5 1.6.3 1.7.9-r1 1.4_p6 1.8.5-r3 protected: 1.9.6-r1 omitted: none
 sys-devel/autoconfselected: 2.13 protected: 2.59-r6 omitted: noneBut emerge --pretend --emptytree xmms on my system wants (amongstother things)...[ebuildN] sys-devel/autoconf-
2.13[ebuildN] sys-devel/autoconf-2.59-r6[ebuildN] sys-devel/automake-1.5[ebuildN] sys-devel/automake-1.8.5-r3[ebuildN] sys-devel/automake-1.6.3[ebuildN] sys-devel/automake-
1.7.9-r1[ebuildN] sys-devel/automake-1.4_p6[ebuildN] sys-devel/automake-wrapper-1-r1[ebuildN] sys-devel/automake-1.9.6-r1[ebuildN] x11-libs/gtk+-1.2.10-r11That's just 1 app.I'm sure there are others that would experience
similar breakage.If you emerge --pretend --emptytree --world and anold version listed for deletion by --prune does *NOT* show up, you'llprobably be safe removing it.Maybe emerge --pretend --prune needs to
run emerge --pretend --emptytree --world by default, and use itsoutput as a sanity-check before recommending deletions.--Walter Dnes [EMAIL PROTECTED]
 In linux /sbin/init is Job #1My musings on technology and security at http://tech_sec.blog.ca--gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Need drive space, what to delete?

2005-12-06 Thread Dale
Walter Dnes wrote:

 snip


  That's just 1 app.  I'm sure there are others that would experience
similar breakage.  If you emerge --pretend --emptytree --world and an
old version listed for deletion by --prune does *NOT* show up, you'll
probably be safe removing it.  Maybe emerge --pretend --prune needs to
run emerge --pretend --emptytree --world by default, and use its
output as a sanity-check before recommending deletions.

  

Just for the record, I do that command but I then remove each app one by
one by it's name.  I do NOT just remove the -p option and go take a
nap.  I trust portage a lot but I also know that some things need more
than one version, automake and autoconf being a couple of them but there
are more like that.

To be honest, if they removed that -p option. I would switch from
Gentoo.  Portage is great but I want to test the water before I jump in
and find out it is freezing cold or scalding hot.

What I wound up doing is removing some temp files, /var/tmp/portage/*,
that gave me enough space to carry on a little longer.  I'm trying to
get my 30GB hard drive back that I loaned out.  I'll have plenty of
space then.  I may end up getting a new 120GB or 160GB drive for this
rig though.  I need one that is big but cheap.  I recently got me a new
digital camera and a girlfriend.  I'm not sure how long my 2 80GB drives
will last in my main rig.

Also note to clear up confision.  I have four rigs here.  All run
folding and one is a desktop, rest are servers.  I may put that in my sig. 

Thanks for pointing that out though.  That would not be a good idea to
run that blindly.

Dale
:-)

-- 
To err is human, I'm most certainly human.

 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Need drive space, what to delete?

2005-12-04 Thread Dale
Haim Ashkenazi wrote:

do you have WIPE_TMP=yes in /etc/conf.d/bootmisc? if not (and you
don't have any other means of cleaning /tmp, chances are you have too
many files in /tmp (e.g. every movie you ever viewed with firefox).
you can change the setting like the example above and reboot the machine
and it'll clean you /tmp.

note however that every boot will completely wipe out every file you
have in /tmp.

Bye
  

Well, this is set up as a server but I do have KDE installed.  It has
never connected to the net though.  I hope my mom will start using it if
I move.

I'm going to try that setting and reboot and see if it helps any, it has
to help some though.  May do the same on my other rigs too.

Thanks.

Dale
:-)

-- 
To err is human, I'm most certainly human.

 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Need drive space, what to delete?

2005-12-04 Thread Dale
LOL  It helped a little bit, but not much.

 swifty / # df
 Filesystem   1K-blocks  Used Available Use% Mounted on
 /dev/hda6  3564108   3505584 58524  99% /
 udev12738880127308   1% /dev
 /dev/hda148312 37412 10900  78% /boot
 none127388 0127388   0% /dev/shm
 swifty / #

Any more ideas?  I would hate to have to remove KDE from that thing.

Thanks.

Dale
:-)

-- 
To err is human, I'm most certainly human.

 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Need drive space, what to delete?

2005-12-04 Thread Holly Bostick
Dale schreef:
 LOL  It helped a little bit, but not much.
 
 
 swifty / # df Filesystem   1K-blocks  Used Available
 Use% Mounted on /dev/hda6  3564108   3505584 58524
 99% / udev12738880127308   1% /dev 
 /dev/hda148312 37412 10900  78% /boot none
 127388 0127388   0% /dev/shm swifty / #
 
 
 Any more ideas?  I would hate to have to remove KDE from that thing.
 
 OK, ideas

1 (Traditional): delete the contents of /usr/portage/distfiles. These
are the downloaded tarballs of the programs you have previously
installed. Since they are already installed, the tarballs are no longer
needed unless you reinstall the same program, soeleting these files only
means that if you want to reinstall the same version of the same
program, you'd have to download the tarball again.  However, since
you're on dialup, this might be a problem for you. So I would suggest
that you burn any tarballs you consider 'precious' or difficult to
acquire to CD or DVD (do you have a CD or DVD burner?) and *then* delete
the contents of /usr/portage/distfiles. If you need to reinstall
something that's difficult to download, you can pop the item back into
/distfiles/ from the backup. I commonly do this for the Neverwinter
Nights data tarball, which is 1GB of tarball, and I not only don't
really want to be downloading that again (even on my 8Mbit ADSL line)
when I want to reinstall NWN, but I don't need a gig of space being
eaten on my / partiton either. The file doesn't change, so it's safe enough.

2 (Traditional, little-known): Check /var/tmp/portage. There is a
directory for every compile you've done, and normally (when the compile
completes successfully) the temp compilation files are replaced by a
tiny .keep file. If the compile fails, however, the compilation files
remain, taking up space-- sometimes a lot of space. Find the directories
that take up more than a few KB and delete them. The program isn't
installed anyway (since the compilation failed), so no harm done.

3 (Tough Love): You don't want to get rid of KDE, but there's a good
chance you don't need all of KDE-- you might consider trimming it. This
is the gigantic benefit of the split ebuilds; you don't have to have
*all* of KDE, just the parts you need. You perhaps installed KOffice--
but do you actually need the spreadsheet and the presentation
whatever? Uninstall KOffice and reinstall just KWord. Do you need
the accessibility functions?The educational programs? The PIM, toys, and
webdev programs? Etc, etc. If you have kde-meta installed, you might
want to consider unmerging that, re-emerging just the split ebuilds for
the KDE programs you use, then emerge depclean-ing the rest.

4. (Tough Love 1a): Do the above and switch to a 'lighter' WM-- you can
perfectly well use KDE applications while using... oh, IceWM or Openbox
or Fvwm-Crystal. I personally don't like KDE or most of its programs,
but there are a few KDE programs I do use under Fvwm-Crystal (Krusader,
K3b, KView). While of course this means I must have kdelibs, kdebase,
and QT installed (and the Control Center to manage the KDE backend
quickly for those few times its necessary), I don't *use* Konqueror, so
I don't need it, and I don't have to have a gigantic KDE backend
installed for no purpose (on my system). Using -kde in your USE flags
can often eliminate some cruft when installing such programs (because I
don't use the KDE backend for the applications, I don't need the KDE
setup tool for K3b, or the linkages that optional KDE support creates
when installing Krusader). Think about it.

5 (Tough Love 2): Consider not keeping every d*mn thing on your
computer's drive all the time. Back lesser-used personal data files off
the disk (twice, if you're thorough) and *delete them from the disk*. If
you need the file, copy it back from the CD-- or use it from the CD, if
it's like a movie or something. The originals don't have to be sitting
there taking up space just because. And you should back up anyway
(it's good policy).

6 (External Tools): Consider emerging/using  /kgraphspace/ (if
you must have a KDE application), or /xdiskusage/ to see what is
actually taking up the space. Once you have located what directories
contain files that are taking up too much space, you can determine what
to do with them (delete, back up, whatever).

Hope this helps,
Holly
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Need drive space, what to delete?

2005-12-04 Thread Dale
Holly Bostick wrote:


 OK, ideas

1 (Traditional): delete the contents of /usr/portage/distfiles. 


Already gone.  I use http-replicator from my main rig.  I do wish I
could tell emerge to delete them after it finishes compiling though.


2 (Traditional, little-known): Check /var/tmp/portage. 
  


It will be gone shortly.  I didn't know if it would bork my system if I
deleted them or not.

3 (Tough Love): You don't want to get rid of KDE, but there's a good
chance you don't need all of KDE-- you might consider trimming it. 
  


I plan to let my mom use it if I move so I hope I can keep it all.  Good
idea though.  I can't even remember what all I installed now.  Most
likely the whole thing though.  ;)

5 (Tough Love 2): Consider not keeping every d*mn thing on your
computer's drive all the time. 


Right now, it only runs folding.  I have logged into KDE a couple times
but never been on the net.  Just making sure it would work is all.

6 (External Tools): Consider emerging/using  /kgraphspace/ (if
you must have a KDE application), or /xdiskusage/ to see what is
actually taking up the space. Once you have located what directories
contain files that are taking up too much space, you can determine what
to do with them (delete, back up, whatever).
  


I had never heard of these.  Sort of funny, I need room but I need to
install something to see what can go.  LOL  I'll check into it though,
for my main rig for sure.

Hope this helps,
Holly
  

I did remove a kernel that I am not using.  I also pruned a few other
things that was not needed.  I was at 92% or so, now I am at 70%.  That
/var/tmp/portage was pretty big.  At least I can run folding now. 

Thanks for the help.
Dale
:-)

-- 
To err is human, I'm most certainly human.

 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Need drive space, what to delete?

2005-12-04 Thread Holly Bostick
Dale schreef:
 Holly Bostick wrote:
 
 3 (Tough Love): You don't want to get rid of KDE, but there's a 
 good chance you don't need all of KDE-- you might consider trimming
  it.
 I plan to let my mom use it if I move so I hope I can keep it all.

Now, see, that's where you lose me because your mom *may* use the
computer if you move, you want to keep every possibility of KDE
available for her?

What is your mother actually likely to use the computer for, if she in
fact does use it (which you don't even know if she will)?

If she's never heard of an MP3, and isn't likely to download any, she
doesn't *need* amaroK/juK/noatun (kdemultimedia-meta), no matter how
nice it is. Kscd (for audio CDs) will be fine.

If she doesn't have any DVDs or download films, (k)mplayer and xine and
its ilk are a waste of space.

Is she really likely to change her wallpaper or window decoration a lot
(or ever)? If not, kde-artwork is pretty pointless.

Is she likely to administer users or create cron jobs? No? So much for
kdeadmin-meta.

Has she a digital camera or video camera? A fax? Does she edit graphics
files? Take screenshots of her desktop? No? Well then The Gimp and
kdegrapics-meta doesn't have to be there either.

Does she do a lot of document editing? Of MSWord documents? Does she
really need OO.o, or even KWord for this? Might abiword not be
sufficient, or even kedit or kate?

You see where I'm going with this. I admit that I'm a bit hot on this
issue; my bf's mother was recently forced to accept a computer by her
other son (hand-me-down). She does not know anything about computers,
and in fact doesn't want this one (but everyone is figuring that she
needs one, and once she gets used to it and sees the capabilities,
she'll love it. I'm not so sure myself, but it could go that way, of
course). At her recent birthday party, she was complaining that all of
her friends and family (who are experienced, average users) were
giving her advice like you need to get cable internet, and that sort
of thing-- while she's trying to master Windows Solitaire *in order to*
*learn how to use the mouse*. We have a printer (hand-me-down) to give
her, but what's the rush when she doesn't know what a text file (or a
*.doc file) is,  or what programs are needed to open or view them-- in fact,
she doesn't have any text documents-- much less a need to print said
non-existent documents (which if needed she could create in Notepad just
as well as OO.o Writer, and probably easier).

I'm also hot on this issue because this was always my major complaint
about Windows. Microsoft, like any company, wants to create a positive
experience for the users of their product, so that the user will
continue to buy their product. That's normal. What isn't normal, imo,
is their design philosophy-- that the only (or most successful) way to
ensure a positive user experience is to control the user's environment
so severely that it only encompasses those areas that Microsoft is
guaranteed to deliver a positive experience in. So MSOffice saves files
in a proprietary format that MSOffice reads best. Optimization of
webpages created in Frontpage (free with MSOffice) display perfectly in
IE, and poorly in Mozilla. *.wmv files are beneficial to use due to the
compression, but are hard to play in media players that are not WMP. And
the list goes on-- though I'm still not sure why the \My * folders
(Documents, Media, Music, etc) are placed on the C:\ drive by default
when the most common way to fix Windows is to reformat and reinstall
(thereby deleting your C:\My * files).

The reason that I will not use Windows is that *the ability to control*
*my environment is an essential part of a positive user experience* for
me. Therefore I must object to your efforts to create a positive user
experience for your mother by controlling her environment excessively.
This position is supported by the fact that you *cannot* provide every
single bell-and-whistle available-- you simply don't have the disk
space. So for you, if you want to encourage your mother (and the
greatest encouragement is a positive user experience), the best way to
do that is to customize the PC to her actual needs, rather than trying
to cover every possible eventuality of what you *think* she *might* want
*someday*.

I'd say, strip the system down to the bare minimum of what she's likely
to need daily (and what the system can reasonably support to run
quickly, since a slow computer is not part of a positive user
experience), and let her get comfortable with that-- if she then expands
her horizons and needs more functionality, she can ask you (mother-son
bonding, an added benefit), or she can learn about Gentoo at her own
pace and have the thrill of accomplishment just like you've had.

Just my 5 Euros,
Holly


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Need drive space, what to delete?

2005-12-04 Thread Richard Fish
On 12/4/05, Dale [EMAIL PROTECTED] wrote:
 LOL  It helped a little bit, but not much.

  swifty / # df
  Filesystem   1K-blocks  Used Available Use% Mounted on
  /dev/hda6  3564108   3505584 58524  99% /
  udev12738880127308   1% /dev
  /dev/hda148312 37412 10900  78% /boot
  none127388 0127388   0% /dev/shm
  swifty / #

 Any more ideas?  I would hate to have to remove KDE from that thing.

In addition to Holly's comments, I would take a look at the output of
emerge --pretend --prune.  It is likely that you have some slotted
packages that you do not use anymore and can delete.  Old kernel
sources (don't forget to manually remove the associated
/lib/modules/kernel version directory) and old versions of KDE would
be prime suspects.

You can also delete just the distfiles that are no longer needed
(because of upgrades or removed packages) with something like:

mount / -o remount,atime
touch --time=atime --date 01/01/2005 /usr/portage/distfiles/*
emerge -De --fetchonly world
mount / -o remount,noatime
find /usr/portage/distfiles -type f -amin +60 -exec rm -v {} \;

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Need drive space, what to delete?

2005-12-04 Thread Spider (D.m.D. Lj.)
On Sun, 2005-12-04 at 04:42 -0600, Dale wrote:
 LOL  It helped a little bit, but not much.
 
  swifty / # df
  Filesystem   1K-blocks  Used Available Use% Mounted on
  /dev/hda6  3564108   3505584 58524  99% /
  udev12738880127308   1% /dev
  /dev/hda148312 37412 10900  78% /boot
  none127388 0127388   0% /dev/shm
  swifty / #
 
 Any more ideas?  I would hate to have to remove KDE from that thing.


Little known things that may help:

app-admin/localepurge
 Handy tool.  Wipes locales that you don't use.
( 262 Mb here )

make sure you strip binaries, build them with -O2 or -Os instead of -O3.
(debug info alone on my system is  490 Mb)

Wipe old kernels.
make clean in the one kernel dir you have left.

/lib/modules : clean out things you don't have left.



cd /usr ;
du -ab |sort -n   


Look at the results,  then use equery ( or qfile, qpkg, epm or any other
tool)  to look them up.

emerge --prune ( handle with care... .)


Remove tetex if you have it installed. ( Also make sure you set
USE=-doc  unless you really want API documentations )



Logs?  Logrotate + compression.

KDE:  perhaps using split builds and only installing the pieces you
need/want?

//Spider



-- 
begin  .signature
Tortured users / Laughing in pain
See Microsoft KB Article Q265230 for more information.
end



signature.asc
Description: This is a digitally signed message part


Re: [gentoo-user] Need drive space, what to delete?

2005-12-04 Thread Neil Bothwick
On Sun, 4 Dec 2005 09:38:17 -0800, Steven Susbauer wrote:

 since I want the actual installed programs to stay even with a
 depclean, I add them to my world file ( equery l kde-base/ | grep
 kde-base  /var/lib/portage/world ).

That will put all kde-base files in world, even libraries and other
dependencies.


-- 
Neil Bothwick

The quickest way to a man's heart is through his sternum.


signature.asc
Description: PGP signature


Re: [gentoo-user] Need drive space, what to delete?

2005-12-04 Thread Steven Susbauer
It's relatively easy to delete the libraries from the world file. All I keep in there is stuff I know I want, like kscd or whatever. You also have to delete the 3.4.3 version numbers from the files, which can be a pain if you don't know how to use vi.
It is for the most part easier to start with a blank slate; in my case I like having everything and deleting things I know I don't need, because otherwise I'm likely to forget something I do.After cleaning up the world file, depclean will remove the things I didn't need.
On 12/4/05, Neil Bothwick [EMAIL PROTECTED] wrote:
On Sun, 4 Dec 2005 09:38:17 -0800, Steven Susbauer wrote: since I want the actual installed programs to stay even with a depclean, I add them to my world file ( equery l kde-base/ | grep kde-base  /var/lib/portage/world ).
That will put all kde-base files in world, even libraries and otherdependencies.--Neil BothwickThe quickest way to a man's heart is through his sternum.
-- Steven Susbauer


Re: [gentoo-user] Need drive space, what to delete?

2005-12-04 Thread Neil Bothwick
On Sun, 4 Dec 2005 13:30:57 -0800, Steven Susbauer wrote:

 It is for the most part easier to start with a blank slate; in my case I
 like having everything and deleting things I know I don't need, because
 otherwise I'm likely to forget something I do.

I've done it the other way around. unmerge the meta packages then run
emerge depclean -p. Any programs I want to keep I add to world with
emerge -n package. Then run depclean again until it contains nothing I
want.


-- 
Neil Bothwick

CONGRSS.SYS corruptd... Re-boot Washington D.C? (Y/N)


signature.asc
Description: PGP signature


Re: [gentoo-user] Need drive space, what to delete?

2005-12-04 Thread Dale
Richard Fish wrote:

In addition to Holly's comments, I would take a look at the output of
emerge --pretend --prune.  


Funny, that was what I did.  Even though it is a recent install it still
had several version of some stuff.  It took up a bit of room too.

You can also delete just the distfiles that are no longer needed
(because of upgrades or removed packages) with something like:

  

I do that pretty regular anyway.  I have my main rig set up as a
http-replicator server and it only takes a minute or so to download the
files on my LAN.  It also saves on my dial-up connection.

You guys really com up with some ideas.  Anybody have a cure for
psoriasis?  I'm disabled from it maybe you can come up with some ideas. 
The Doctors managed to make it worse though.  I was at 1% when I first
went to them, I'm at about 80% now.  Needless to say, I don't see
Doctors anymore.


Dale
:-)

-- 
To err is human, I'm most certainly human.

 

-- 
gentoo-user@gentoo.org mailing list