Re: not dead [yet].

2009-08-07 Thread b. f.
On 8/7/09, Gary Kline  wrote:

>
> Hmm.  here is the output from df:
>
>  ~
> Filesystem  1K-blocks Used   Avail Capacity  Mounted on
> /dev/ad0s1a507630   363386  10363478%/
> devfs   11   0   100%/dev
> /dev/ad0s1e507630   107700  35932023%/tmp
> /dev/ad0s1f  32816996 24508992 568264681%/usr
> /dev/ad0s1d   2007598   862818  98417447%/var
> linprocfs   44   0   100%/usr/compat/linux/proc
>
> Since this box was a give and top qual, a Dell running a  2.4GHz, no
> complaints.
> I asked and the gifter installed two optical drives and a new secondary hard
> drive.
>
> '07, i think.  so do i really have > 300G?  the thing i don't understand is:
> *what*
> could be using up 80% of /usr?
>
> For as much as I use things-gui, i like both KDE and Gnome.  Hate to have
> all them
> electrons weighing things down with, say, koffice, when i don't use it.
>
> gary
>

I must have missed something in this thread.  Last time I looked, we
were talking about port deletions. At a glance, it looks like you have
about 35Gb -- the df output says that those are 1kb blocks.  It also
looks like /usr/local is not a separate mountpoint, so both the base
system software in /usr and the third-party software in /usr/local are
counting towards the roughly 23Gb used in /usr.  (But why ask us?
Just run du(1) or something, and find out.)  I have older hardware, so
I use the CLI as much as I can, and favor lightweight programs, only
using a few components of Gnome.  If you feel overburdened, consider
dropping one of the desktops, or using a lightweight alternative like
Xfce.  Or do like I do and just use a lightweight windows manager, not
a full desktop, and cherrypick a few pieces of software from the full
desktops.

This person was giving you a computer for free, and you somehow
managed to get them to install new, extra drives before they handed it
over?!  Tell them I need one, too.

b.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: not dead [yet].

2009-08-06 Thread Gary Kline
On Tue, Aug 04, 2009 at 10:37:46PM +, b. f. wrote:
> Roland Smith  wrote:
> >What you can do is make a list of all installed ports with 
> >ports-mgmt/portmaster:
> >  portmaster -L >ports.list
> >
> >Looking through this list, you'll see four categories;
> >- Root ports (No dependencies, not depended on)
> >- Trunk ports (No dependencies, are depended on)
> >- Branch ports (Have dependencies, are depended on)
> >- Leaf ports (Have dependencies, not depended on)
> >
> >Basically, you can delete any of the leaf and root ports, because
> >they're not depended on. E.g. if you have the following in your list as
> >a leaf port:
> >  ===>>> qemu-0.10.6
> >you can execute 'pkg_delete -d qemu-0.10.6' as root, and it is gone.
> 
> If you're only interested in deletion, "-l" should be preferred to
> "-L".  And portmaster with these flags does not always account for
> build dependencies. so with this method you may occasionally remove a
> port that is only used to build other ports, but is not a runtime
> dependency of any other port.  Also, occasionally a port Makefile
> doesn't properly account for some dependencies, and removing them will
> break the port.  So there may be some breakages that you'll have to
> fix, but this shouldn't happen often.
> 
> When removing ports, I sometimes use pkg_deinstall -vR, sometimes also
> with -i.   because it can clean out the now-unneeded dependencies of
> the port I'm removing, which speeds up this process. Provided your
> pkgdb and portsdb are up-to-date, it's a little better than portmaster
> -s, which relies on +REQUIRED_BY to detect stale dependencies, and may
> occasionally fail.
> 
> b.

Hmm.  here is the output from df:

 ~
Filesystem  1K-blocks Used   Avail Capacity  Mounted on
/dev/ad0s1a507630   363386  10363478%/
devfs   11   0   100%/dev
/dev/ad0s1e507630   107700  35932023%/tmp
/dev/ad0s1f  32816996 24508992 568264681%/usr
/dev/ad0s1d   2007598   862818  98417447%/var
linprocfs   44   0   100%/usr/compat/linux/proc

Since this box was a give and top qual, a Dell running a  2.4GHz, no complaints.
I asked and the gifter installed two optical drives and a new secondary hard
drive.

'07, i think.  so do i really have > 300G?  the thing i don't understand is: 
*what* 
could be using up 80% of /usr?  

For as much as I use things-gui, i like both KDE and Gnome.  Hate to have all 
them
electrons weighing things down with, say, koffice, when i don't use it.

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 5.67a release of Jottings: http://jottings.thought.org/index.php

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: not dead [yet].

2009-08-04 Thread b. f.
Roland Smith  wrote:
>What you can do is make a list of all installed ports with 
>ports-mgmt/portmaster:
>  portmaster -L >ports.list
>
>Looking through this list, you'll see four categories;
>- Root ports (No dependencies, not depended on)
>- Trunk ports (No dependencies, are depended on)
>- Branch ports (Have dependencies, are depended on)
>- Leaf ports (Have dependencies, not depended on)
>
>Basically, you can delete any of the leaf and root ports, because
>they're not depended on. E.g. if you have the following in your list as
>a leaf port:
>  ===>>> qemu-0.10.6
>you can execute 'pkg_delete -d qemu-0.10.6' as root, and it is gone.

If you're only interested in deletion, "-l" should be preferred to
"-L".  And portmaster with these flags does not always account for
build dependencies. so with this method you may occasionally remove a
port that is only used to build other ports, but is not a runtime
dependency of any other port.  Also, occasionally a port Makefile
doesn't properly account for some dependencies, and removing them will
break the port.  So there may be some breakages that you'll have to
fix, but this shouldn't happen often.

When removing ports, I sometimes use pkg_deinstall -vR, sometimes also
with -i.   because it can clean out the now-unneeded dependencies of
the port I'm removing, which speeds up this process. Provided your
pkgdb and portsdb are up-to-date, it's a little better than portmaster
-s, which relies on +REQUIRED_BY to detect stale dependencies, and may
occasionally fail.

b.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: not dead [yet].

2009-08-04 Thread Roland Smith
On Tue, Aug 04, 2009 at 12:16:56PM -0700, Gary Kline wrote:
> 
>   Until late Sunday night I was here at keyboard/computer virtually
>   24/7 working on thesis.  So was my advisor, but then that's his
>   *job*.  Anyway, now it's wait and see.

Good luck!

>   Meanwhile: how do I get rid of a truckload of old binaries that I
>   rarely/never use?  Most show a list of dependencies that's about
>   70 lines long, and I don't want to break things.
> 
>   --To give a ferinstance, last spring I installed every OCR port
>   we've got.  Not came close; all can go.

What you can do is make a list of all installed ports with 
ports-mgmt/portmaster:
  portmaster -L >ports.list

Looking through this list, you'll see four categories;
- Root ports (No dependencies, not depended on)
- Trunk ports (No dependencies, are depended on)
- Branch ports (Have dependencies, are depended on)
- Leaf ports (Have dependencies, not depended on)

Basically, you can delete any of the leaf and root ports, because
they're not depended on. E.g. if you have the following in your list as
a leaf port:
  ===>>> qemu-0.10.6
you can execute 'pkg_delete -d qemu-0.10.6' as root, and it is gone.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgp1ruSLkZjjc.pgp
Description: PGP signature


Re: not dead [yet].

2009-08-04 Thread RW
On Tue, 4 Aug 2009 16:32:54 -0400
Glen Barber  wrote:
 

> >        Meanwhile: how do I get rid of a truckload of old binaries
> > that I rarely/never use?  Most show a list of dependencies that's
> > about 70 lines long, and I don't want to break things.
> >
> 
> ports-mgmt/pkg_cutleaves may be what you're looking for.


Or "portmanager -slid" which is a bit easier to use for a one-off
cleanup, and also understands build-dependencies.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: not dead [yet].

2009-08-04 Thread Glen Barber
Hi, Gary

On Tue, Aug 4, 2009 at 3:16 PM, Gary Kline wrote:
>
>        Until late Sunday night I was here at keyboard/computer virtually
>        24/7 working on thesis.  So was my advisor, but then that's his
>        *job*.  Anyway, now it's wait and see.
>

Such is academia. :-)

>        Meanwhile: how do I get rid of a truckload of old binaries that I
>        rarely/never use?  Most show a list of dependencies that's about
>        70 lines long, and I don't want to break things.
>

ports-mgmt/pkg_cutleaves may be what you're looking for.

>        --To give a ferinstance, last spring I installed every OCR port
>        we've got.  Not came close; all can go.
>
>        thanks for some lights!
>



-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"