[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: disk usage for /usr/lib on bullseye



On 2/5/23 17:18, Tixy wrote:
On Tue, 2023-05-02 at 17:03 +0800, Bret Busby wrote:
On 2/5/23 16:58, Bret Busby wrote:
On 2/5/23 11:42, David Wright wrote:

<snip>


Have you tried running also
apt autoclean

I thought that just cleared /var/cache/apt/archives/.

and
apt purge

I've never tried that without a package name. What does it do?


RTFM ?


man apt

Which doesn't say what 'apt purge' does without a package name. It says
'Performs the requested action on one or more packages specified via
regex(7), glob(7) or exact match'. It doesn't go on to say what happens
if you leave that blank. 3 possibilities that spring to mind is that
this is and error, a noop, or means 'every package'. The latter you be
real bad, the other two now a useful suggestion to people. Of course,
it could be special cased to mean 'purge everything not installed',
which count be useful, but the man page doesn't say that.

"
install, reinstall, remove, purge (apt-get(8))
Performs the requested action on one or more packages specified via regex(7), glob(7) or exact match. The requested action can be overridden for specific packages by appending a plus (+) to the package name to install this package or a minus (-) to remove it.

A specific version of a package can be selected for installation by following the package name with an equals (=) and the version of the package to select. Alternatively the version from a specific release can be selected by following the package name with a forward slash (/) and codename (bullseye, bookworm, sid ...) or suite name (stable, testing, unstable). This will also select versions from this release for dependencies of this package if needed to satisfy the request.

Removing a package removes all packaged data, but leaves usually small (modified) user configuration files behind, in case the remove was an accident. Just issuing an installation request for the accidentally removed package will restore its function as before in that case. On the other hand you can get rid of these leftovers by calling purge even on already removed packages. Note that this does not affect any data or configuration stored in your home directory.
"

I expect that, by context, running
apt purge
without the restriction specifying particular package, will apply
apt purge
to all installed packages, according to what purge does, in relation to packages.

..
Bret Busby
Armadale
West Australia
(UTC+0800)
..............


Reply to: