Is it okay to remove this list of packages?

Is it okay to remove all of this packages not required or optionally required by other packages?
I would like to free some space. I would still check each optionally required packages.

╰─ pamac list -o
augeas                    1.13.0-1                   community  2.2 MB
autoconf                  2.71-1                     core       2.3 MB
automake                  1.16.5-1                   core       1.7 MB
bison                     3.8.2-4                    core       2.7 MB
boost                     1.80.0-2                   extra      179.6 MB
breath2-wallpaper         1.0.18-5                              532.2 kB
celt                      0.11.3-4                              180.1 kB
ceph-libs                 15.2.17-1                             62.4 MB
clutter                   1.26.4-2                   extra      18.3 MB
cups-pdf                  3.0.1-6                    extra      197.8 kB
debootstrap               1.0.127-2                  community  194.7 kB
debugedit                 5.0-4                      core       107.4 kB
deepin-qt5integration     5.5.24-1                   community  938.7 kB
docbook2x                 0.8.8-18                   community  1.3 MB
dotnet-targeting-pack     6.0.9.sdk109-1             community  38.3 MB
doxygen                   1.9.3-1                    extra      17.6 MB
dtc                       1.6.1-4                    community  609.7 kB
edk2-ovmf                 202208-1                   extra      18.4 MB
electron                  20.0.3-2                   community  209.0 MB
elfutils                  0.187-2                    core       3.6 MB
extra-cmake-modules       5.98.0-1                   extra      2.5 MB
flex                      2.6.4-3                    core       994.3 kB
gamemode                  1.7-1                      community  250.8 kB
gamescope                 3.11.47-1                  community  760.5 kB
gifski                    1.7.2-1                    community  1.3 MB
glm                       0.9.9.8-1                  community  18.9 MB
gnome-desktop             1:42.4-1                   extra      565.3 kB
granite                   6.2.0-2                    community  1.6 MB
gst-plugin-gtk            1.20.3-2                   extra      63.5 kB
gstreamer-vaapi           1.20.3-2                   extra      856.6 kB
gtest                     1.12.1-1                   community  2.2 MB
gtk-theme-breath          5.9.0-1                    community  860.2 kB
gtk-vnc                   1.3.1-1                    extra      929.2 kB
gtksourceview4            4.8.3-1                    extra      7.8 MB
hivex                     1.3.21-7                   community  487.8 kB
innoextract               1.9-7                      community  607.5 kB
js78                      78.15.0-4                  community  65.3 MB
kdepim-runtime            22.08.1-1                  extra      14.7 MB
kontactinterface          22.08.1-1                  extra      469.0 kB
lib32-gamemode            1.7-1                      multilib   35.7 kB
lib32-libvpx              1.12.0-1                   multilib   3.6 MB
lib32-libxss              1.2.3-2                    multilib   13.8 kB
lib32-mangohud            0.6.8-1                    multilib   1.6 MB
lib32-nss                 3.83-1                     multilib   3.2 MB
lib32-readline            8.1.002-1                  multilib   378.5 kB
libadwaita                1:1.2.0-1                  extra      2.4 MB
libconfig                 1.7.3-1                    community  256.7 kB
libcpufeatures            0.7.0-2                               93.4 kB
libcroco                  0.6.13-2                   extra      1.2 MB
libcue                    2.2.1-2                    extra      51.5 kB
libgit2                   1:1.5.0-1                  extra      2.8 MB
libgovirt                 2:0.3.8-1                  community  412.4 kB
libkcddb                  22.08.1-1                  extra      1.5 MB
libkeybinder3             0.3.2-3                    extra      77.4 kB
libkipi                   21.08.2-1                             309.0 kB
libksane                  22.08.1-1                  extra      671.2 kB
libldm                    0.2.5-2                    community  110.5 kB
libofa                    0.9.3-9                    extra      168.6 kB
libosinfo                 1.10.0-1                   community  2.9 MB
libsbsms                  2.3.0-3                    community  233.1 kB
libslirp                  4.7.0-1                    community  150.4 kB
libtorrent-rasterbar      1:2.0.7-2                  extra      10.6 MB
lsscsi                    0.32-1                     community  95.1 kB
lxc-git                   lxc.5.0.0.18-1                        30.2 MB
lzip                      1.23-2                     community  133.0 kB
mangohud                  0.6.8-3                    community  1.4 MB
mauikit                   2.2.0-1                    community  6.1 MB
meson                     0.63.3-1                   extra      8.3 MB
mujs                      1.2.0-2                    community  674.7 kB
multipath-tools           0.9.1-1                    community  1.2 MB
nasm                      2.15.05-1                  extra      3.3 MB
ngspice                   37-2                       community  17.8 MB
numactl                   2.0.16-1                   extra      228.4 kB
opencl-headers            2:2022.05.18-1             extra      320.9 kB
openssl-1.0               1.0.2.u-1                  core       6.1 MB
perl-libintl-perl         1.32-3                     extra      4.2 MB
pkgconf                   1.8.0-1                    core       165.5 kB
portmidi                  236-1                      extra      115.2 kB
portsmf                   234-2                      extra      214.0 kB
properties-cpp            0.0.2-1                               1.2 MB
python-attrdict           2.0.1-5                               56.4 kB
python-beaker             1.11.0-8                   extra      492.3 kB
python-cachecontrol       1:0.12.11-1                community  126.6 kB
python-colorama           0.4.5-1                    community  87.7 kB
python-contextlib2        21.6.0-1                   community  90.3 kB
python-distlib            0.3.6-1                    community  1.0 MB
python-distro             1.7.0-1                    community  170.0 kB
python-flask-compress     1.12-1                     community  34.3 kB
python-flask-gravatar     0.5.0-7                    community  35.0 kB
python-flask-migrate      3.1.0-1                    community  142.3 kB
python-flask-paranoid     0.3.0-1                    community  27.7 kB
python-flask-security-too 4.1.5-1                    community  1.7 MB
python-greenlet           1.1.3-1                    community  415.0 kB
python-gssapi             1.8.0-1                    community  2.3 MB
python-ldap3              2.9.1-3                    community  5.8 MB
python-magic              1:0.4.27-1                 community  80.0 kB
python-pep517             0.13.0-1                   extra      139.5 kB
python-polib              1.1.1-1                               167.0 kB
python-progress           1.6-5                      community  44.3 kB
python-pycryptodome       3.15.0-2                   community  3.9 MB
python-pytest-forked      1.4.0-2                    community  16.4 kB
python-resolvelib         0.8.1-1                    extra      108.3 kB
python-retrying           1.3.3-13                   extra      33.2 kB
python-simplejson         3.17.6-4                   community  373.3 kB
python-sqlparse           0.4.2-3                    community  235.5 kB
python-sshtunnel          0.4.0-3                    community  260.3 kB
python-toml               0.10.2-8                   community  141.8 kB
qgpgme                    1.18.0-1                   core       1.1 MB
qtdbusextended            0.0.3-1                    community  93.1 kB
qtmpris                   1.0.6-1                    community  455.7 kB
quazip-qt5                1.3-1                      extra      372.6 kB
ripgrep                   13.0.0-2                   community  4.6 MB
sdbus-cpp                 1.1.0-2                               4.2 MB
sdl2_image                2.6.2-2                    extra      204.1 kB
sdx                       20110317-1                            119.3 kB
seabios                   1.16.0-3                   extra      1.1 MB
sleuthkit                 4.11.1-1                   community  17.3 MB
spice                     0.15.0-1                   extra      1.1 MB
spice-gtk                 0.41-2                     community  3.3 MB
splix                     2.0.0-16                   community  171.5 kB
suil                      0.10.16-3                  community  174.8 kB
supermin                  5.3.2-1                    community  2.4 MB
syslinux                  6.04.pre2.r11.gbf6db5b4-3  core       4.4 MB
uchardet                  0.0.7-1                    extra      216.9 kB
udisks2-qt5               5.0.6-1                    community  571.0 kB
upx                       3.96-3                     community  2.0 MB
virglrenderer             0.9.1-1                    extra      557.7 kB
wolfssl                   5.5.1-1                    extra      3.3 MB
xorg-server-xvfb          21.1.4-1                   extra      2.0 MB
xorg-xgamma               1.0.6-4                    extra      18.1 kB
yara                      4.2.3-1                    community  837.2 kB
yasm                      1.3.0-5                    extra      4.5 MB
zita-alsa-pcmi            0.5.1-1                    extra      80.2 kB
zita-resampler            1.8.0-1                    extra      202.6 kB

When in doubt, just leave it alone.

Some of those “unneeded” packages are likely makedepends for AUR PKGBUILDs, and just building third-party PKGBUILDs in general.


More nuanced answer: You should go down the list and determine for yourself if you intentionally installed the package, or still need it, or can safely remove it. Just a quick glance, I can somewhat confidently say that you can safely remove ceph-libs.

2 Likes

Those are always ok to remove (unless you’re using them…).

Removing optional dependencies will remove funtionality: check if you really do not need the functionality provided.

this one can probably go

as well as most of it - if you need AUR support, you should
after having removed most of these
re-install the base-devel package group
to be sure you still have all that is needed

I’d be wary of - on first glance:

elfutils
clutter
gnome-desktop
spice
spice-gtk
cups-pdf

or anything from “core” repositories in that list

some relate to Gnome - if you run that, you do not want to remove that
some are needed for virtual machines

When in doubt, just sudo pacman -Rsc them. Everything else that depends on them will be listed as well. If you think that’s too much, try doing it one by one, so you can keep the ones you can’t uninstall due to dependencies.

Alternatively, pacman -Qi <a package, so only one> | grep 'Required By' will list packages that depend on the queried package.

Tbh the only emulator I’ve used on Linux is dolphin but I know there’s a few console emulators that work quite well.
I believe anbox works well but needs wayland and some kernel adons
as well as most of it - if you need AUR support, you should
after having removed most of these
re-install the base-devel package group
to be sure you still have all that is needed

I’d be wary of - on first glance:

elfutils
clutter
gnome-desktop
spice
spice-gtk
cups-pdf

or anything from “core” repositories in that list

some relate to Gnome - if you run that, you do not want to remove that
some are needed for virtual machines

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.