|
List Info
Thread: Cleaning up after installing packages
|
|
| Cleaning up after installing packages |

|
2006-12-13 15:38:08 |
I've got a 9GB /root with a little over 6GB used. I've not
installed
*that* much at this point other than the gnome and kde
meta-packages.
However, I ran 'make' only in these directories (no
'make-install'
needed???) but never a cleaning option.
Perhaps this could account for the large amount of disk
spaced being
used. If so, what's the 'best' method to go back and clean
to free up
more disk space?
Thanks!
--
Cheers,
Trey
----
Who made the world I cannot tell;
'Tis made, and here am I in hell.
My hand, though now my knuckles bleed,
I never soiled with such a deed.
-- A. E. Housman
Linux laptop 2.6.16.21-0.25-default i686 GNU/Linux
10:37am up 1 day 20:06, 5 users, load average: 0.58,
0.71, 0.58
|
|
| Cleaning up after installing packages |

|
2006-12-13 16:15:33 |
> I've got a 9GB /root with a little over 6GB used. I've
not installed
> *that* much at this point other than the gnome and kde
meta-packages.
> However, I ran 'make' only in these directories (no
'make-install'
> needed???) but never a cleaning option.
"make install" is implied for the dependencies.
> Perhaps this could account for the large amount of disk
spaced being
> used. If so, what's the 'best' method to go back and
clean to free up
> more disk space?
Disk space is probably used up from many work directories.
Please see the pkgsrc Guide at
http://www.netbsd.org/Documentation/pkgsrc/buil
d.html#build.clean
Once you're finished with a package, you can clean the
work directory
by running "make clean". If you want to clean
the work directories of
all dependencies too, use "make clean-depends".
|
|
| Cleaning up after installing packages |

|
2006-12-13 16:15:21 |
On Wed, Dec 13, 2006 at 10:15:33AM -0600, Jeremy C. Reed
wrote:
> Once you're finished with a package, you can clean
the work directory
> by running "make clean". If you want to
clean the work directories of
> all dependencies too, use "make
clean-depends".
Likewise, if you'd also like to delete the distribution
files (typically
the source .tgz files, patches, etc. downloaded for the
package), you need
to run ``make distclean''.
These files are stored in the distfiles/ directory under the
pkgsrc root.
You can find out how much disk space they are taking up by
doing something
like ``du -hs /usr/pkgsrc/distfiles'', adjusted accordingly
for your
installation of pkgsrc.
J.
--
Jason V. Miller
|
|
| Cleaning up after installing packages |

|
2006-12-13 16:48:32 |
On Wed, 13 Dec 2006 09:15:21 -0700
"Jason V. Miller" <jmiller securityfocus.com> wrote:
> On Wed, Dec 13, 2006 at 10:15:33AM -0600, Jeremy C.
Reed wrote:
> > Once you're finished with a package, you can
clean the work
> > directory by running "make clean". If
you want to clean the work
> > directories of all dependencies too, use
"make clean-depends".
>
> Likewise, if you'd also like to delete the distribution
files
> (typically the source .tgz files, patches, etc.
downloaded for the
> package), you need to run ``make distclean''.
>
> These files are stored in the distfiles/ directory
under the pkgsrc
> root. You can find out how much disk space they are
taking up by
> doing something like ``du -hs /usr/pkgsrc/distfiles'',
adjusted
> accordingly for your installation of pkgsrc.
>
> J.
>
So could installing a package and subsequent cleaning be
done in one
fell swoop with?:
# make install clean clean-depends distclean
--
Cheers,
Trey
----
Pure drivel tends to drive ordinary drivel off of the TV
screen.
Linux laptop 2.6.16.21-0.25-default i686 GNU/Linux
11:47am up 1 day 21:15, 5 users, load average: 1.57,
1.83, 1.50
|
|
| Cleaning up after installing packages |

|
2006-12-13 17:25:05 |
On Wed, Dec 13, 2006 at 11:48:32AM -0500, Trey Sizemore
wrote:
> So could installing a package and subsequent cleaning
be done in one
> fell swoop with?:
>
> # make install clean clean-depends distclean
The short answer is yes.
The long asnwer is kind of, though it's more correct to call
make twice
as follows:
# make install && make clean clean-depends
distclean;
Which won't remove your distfiles in the event that the
build fails, and
for some reason I think that combining clean and build
targets in a single
make command is bad practice (though I can't recall why).
I personally find it handy to keep my distfiles around until
they're no
longer required by any packages in the tree. You can use the
-r option to
lintpksrc(1) (from pkgtools/pkglint) to do this for you.
J.
--
Jason V. Miller
|
|
| Cleaning up after installing packages |

|
2006-12-13 17:27:35 |
On Wed, Dec 13, 2006 at 10:38:08AM -0500, Trey Sizemore
wrote regarding Cleaning up after installing packages:
>
> I've got a 9GB /root with a little over 6GB used. I've
not installed
> *that* much at this point other than the gnome and kde
meta-packages.
> However, I ran 'make' only in these directories (no
'make-install'
> needed???) but never a cleaning option.
>
If you've installed a bunch of packages and don't want to
hunt down each one
individually, try "cd /usr/pkgsrc;make clean".
IIRC, this will honor your
/etc/mk.conf preferences for xxx_SPECIFIC_PACKAGES, so if
you've been
tinkering with those, you might still have some stale work
directories when
you're done.
As others have mentioned, there's also a make distclean,
which will remove
.tgz files from your distfiles directory. Not sure if it
does other stuff.
Cheers,
Cliff
|
|
[1-6]
|
|