You are not logged in.

#21 2016-04-13 19:55:22

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,654

Re: /var/ is full

Sector11 wrote:

According to 'man apt' there is no "apt clean"

^ Sector, you have under

man apt-get

searched?   wink

Offline

#22 2016-04-13 21:00:44

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: /var/ is full

Yes, "apt-get" has clean, but the "apt" doesn't.  smile
2016_04_13_17_57_33_Scrot11.jpg


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#23 2016-04-25 04:22:14

paxmark1
Member
Registered: 2015-10-02
Posts: 45

Re: /var/ is full

Hey more tricks  ncdu can be used to see where and how much is used.  Maybe dekete that 100mb gnucashdocs . 

man journalctl  has a section about --vacuum to regulate and or temporarily shrink you systemd journal logs via --vacuum-size .  length of time is --vacuum-time   

man journald.conf tells how to set permanent size limits

Offline

#24 2016-04-25 06:45:46

ghorvath
Member
Registered: 2015-10-01
Posts: 161

Re: /var/ is full

Sorry, I missed this thread earlier.

sudo apt-get autoclean

should remove only those downloaded package deb files from /var which are not installed anymore (also removes previous versions).

sudo apt-get autoremove

removes those packages from the system that were installed automatically to satisfy some dependency and no longer needed. This will not remove the deb files from /var, but should be safe to use this on a stable system, it is designed in a way that should not break anything.

sudo apt-get clean

should remove all downloaded deb files, and if you need to reinstall any of your packages, then you will need to redownload those again.

Last edited by ghorvath (2016-04-25 06:46:40)

Offline

#25 2016-04-25 06:55:45

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,069
Website

Re: /var/ is full

ghorvath wrote:
sudo apt-get autoremove

[...] should be safe to use this on a stable system, it is designed in a way that should not break anything.

This is not correct.

See http://forums.debian.net/viewtopic.php?t=104157

I would advise using:

apt-get -s autoremove

& studying the output carefully before running the command again as root without the "-s" ("simulate") flag.

Offline

#26 2016-04-25 07:08:03

ghorvath
Member
Registered: 2015-10-01
Posts: 161

Re: /var/ is full

Head_on_a_Stick wrote:
ghorvath wrote:
sudo apt-get autoremove

[...] should be safe to use this on a stable system, it is designed in a way that should not break anything.

This is not correct.

See http://forums.debian.net/viewtopic.php?t=104157

I would advise using:

apt-get -s autoremove

& studying the output carefully before running the command again as root without the "-s" ("simulate") flag.

Sure thing, using -s is always safer, no question about that. :-)

However, the key sentence in that thread is "If you remove one of their dependencies". As long as you do not remove packages manually, you are safe. E.g. in my case I chose Bunsenlabs, because it is already a very slim system and I do not need to remove bloat from it. Therefore I do not remove packages manually, so I just run autoremove regularly.

Anyway, you are right that for an inexperienced user it would be safer to run everything with -s first.

Offline

#27 2016-04-25 10:57:35

el_koraco
Member
Registered: 2016-02-08
Posts: 307

Re: /var/ is full

Sector11 wrote:

hmmm I'll have to stop using aptitude now.

Why, it's a perfectly fine package manager. Somewhere around Lenny or Squeeze, it stopped being cool to use aptitude, because it's really not leet enough. So alternative explanations arose as to why this is the case. None of which made a whole lot of sense, all of aptitude's "deficiencies" are easily configured away. I would continue using it if you're used to it, it seems like this apt is gonna take a while to become as feature rich.

Offline

#28 2016-04-25 11:21:00

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: /var/ is full

Hi el_k

Actually ... I didn't stop.  Old habit ... it just kept on being here.  Same as apt-get it does things better then apt.

Of course, that's an opinion.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

Board footer

Powered by FluxBB