On Tue, Aug 22, 2017 at 02:49:34PM +1000, [email protected] wrote:
> On Tuesday, 22 August 2017 4:06:37 AM AEST stripes theotoky via luv-main
> wrote:
>
> > I use aptitude as a package manager.  I'm running out of disk space.
>
> How much disk space is in use and how much do you have?  Hard drives keep
> getting bigger, nowadays it's hard to give away disks smaller than 500G.  A
> large Debian installation is around 6G.

It could be apt-get's download cache taking up a lot of disk space.  It
doesn't clear out downloaded files unless you tell it to.  AFAICT from the man
page, the same is true for aptitude - not surprising, they both use the same
download cache dir to download .deb files to.

try 'du -sch /var/cache/apt/archives'

and if there's a lot of files in there, run 'apt-get clean'

'aptitude clean' will also work.

> Well if you remove all kernels you are probably going to have a problem.
> But if you remove all but the most recent then it will probably be ok.
> Which is it doing?

it's safe to remove all linux-image-* and linux-header-* packages except
for the currently running kernel, which may or may not be the latest kernel
package installed (depending on whether you've rebooted or not since upgrading
it).

apt-get (actually, dpkg IIRC) will warn you if you try to uninstall the
currently running kernel. If your running kernel was auto-installed due
to a dependancy, mark it as manually installed with 'apt-mark manual
linux-image-VERSION', so that it doesn't get removed if you run 'apt-get
autoremove'

> I'm running Debian/Unstable on my laptop and due to some issues of
> dependencies etc "apt-get autoremove" wants to remove many KDE packages
> right now which isn't what I want.  Also due to conflicts it wants to remove
> them if I run "apt-get dist-upgrade".  This sort of thing sometimes happens
> in Unstable when libraries are being updated, so I just have to not upgrade
> my laptop until all the necessary packages are rebuilt to depend on new
> libraries.  It's the sort of thing that happens when you run Unstable.

apt-get upgrade is useful in that situation - it only upgrades packages
that WON'T require another package to be removed.

marking packages as held is also useful.  I used to use my own script
'dpkg-hold' for this but 'apt-mark' (which didn't exist when i write
dpkg-hold) works better.



craig

--
craig sanders <[email protected]>
_______________________________________________
luv-main mailing list
[email protected]
https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main

Reply via email to