On 2/5/23 18:20, Bret Busby wrote:
On 2/5/23 18:18, Bret Busby wrote:
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.
I had meant to include (but forgot to include) in the above message;
perhaps, if reading this, a package developer/maintainer for apt could
clarify the above.
However, in reading the man entry for apt, further, I am of the
impression that what
apt purge
does, is removes redundant configuration files, rather than redundant
dependencies (which, I take to include libraries).
So, given
"
autoremove (apt-get(8))
autoremove is used to remove packages that were
automatically installed to satisfy dependencies for other packages and
are now no longer needed as dependencies changed or the
package(s) needing them were removed in the meantime.
You should check that the list does not include applications
you have grown to like even though they were once installed just as a
dependency of another package. You can mark
such a package as manually installed by using apt-mark(8).
Packages which you have installed explicitly via install are also never
proposed for automatic removal.
"
I expect that, as
apt autoremove
removes redundant kernels (and "packages that were automatically
installed to satisfy dependencies for other packages and are now no
longer needed as dependencies changed or the package(s) needing them
were removed in the meantime"), that apt autoremove should also remove
redundant libraries, which goes to the query of the original poster.
If
apt autoremove
does not remove orphaned (as in redundant, because the "packages that
were automatically installed to satisfy dependencies for other packages
and are now no longer needed as dependencies changed or the package(s)
needing them were removed in the meantime") libraries, then, perhaps,
apt autoremove has a slight deficiency?
..
Bret Busby
Armadale
West Australia
(UTC+0800)
..............