• Remove dependencies that are no longer needed


    Apologies for this naive question… I’m still feeling my way around Antergos.

    Using https://wiki.archlinux.org/index.php/Pacman/Rosetta as a reference I looked at output of pacman -Qdtq (did not do the | pacman -Rs part)

    There’s a bunch of packages that I didn’t expect for example clementine, ctags.

    I fixed those as using pacman -D --asexplicit

    Then I tested the waters with

    $ sudo pacman -Rs mariadb
    checking dependencies...
    :: apr-util optionally requires libmariadbclient: enable mysql/mariadb support
    :: qt3 optionally requires libmariadbclient: MariaDB driver
    :: qt4 optionally requires libmariadbclient: MariaDB driver
    :: qt5-base optionally requires libmariadbclient: MariaDB driver
    
    Packages (3) libmariadbclient-10.1.35-1  mariadb-clients-10.1.35-1  mariadb-10.1.35-1
    
    Total Removed Size:  228.58 MiB
    
    :: Do you want to remove these packages? [Y/n] n
    

    That response did not fill me with confidence.

    So this question is directed to forum members who are more knowledgeable,
    in your experience is it safe to do
    pacman -Qdtq | pacman -Rs - ?

    For the record the complete list is

    automoc4
    cabextract
    cython2
    dcadec
    extra-cmake-modules
    fltk
    gegl02
    gnome-common
    gnu-netcat
    hunspell-de
    hunspell-el
    hunspell-en_AU
    hunspell-en_CA
    hunspell-en_GB
    hunspell-es_any
    hunspell-fr
    hunspell-he
    hunspell-hu
    hunspell-it
    hunspell-nl
    hunspell-pl
    hunspell-ro
    icoutils
    js
    lib32-gettext
    lib32-lcms2
    lib32-libpcap
    libcloudproviders
    mariadb
    nghttp2
    openjpeg
    postgresql
    python-deprecation
    python-flask-compress
    python-flask-socketio-git
    python-gevent
    python-lz4
    python-pdb-clone
    python-pygdbmi
    python-pytest
    python-setuptools-scm
    python-sip
    python2-gtkglext
    python2-lz4
    python2-pillow
    qimageblitz
    qt3
    qtcurve-qt4
    rencode
    schroedinger
    sip
    uglify-js
    wxgtk2
    xf86-video-dummy
    xorg-fonts-misc
    
  • @blaised said in Remove dependencies that are no longer needed:

    So this question is directed to forum members who are more knowledgeable,
    in your experience is it safe to do
    pacman -Qdtq | pacman -Rs - ?

    I don’t risk executing the command here, i’d rather keep all the files (not too much space) and not break packages.

    Mine is around 710 MB.

  • @blaised
    To answer this question with certainty, you’d need to try it and see. But how to do that on a “production” system?

    As I see it, you have some alternatives:

    • try it on a VM (first make the VM as close as to your current system as possible)
    • copy your current system to a VM and try!
    • save the list of packages to be removed, later you can then reinstall them if something goes south
    • backup your system and restore if something goes south
  • Thanks for the responses,
    I was considering doing to this to get rid of cruft that might accrue over time on a rolling distribution.
    Space isn’t an issue at the moment .
    I will elect for “if it ain’t broke, don’t fix it”.

    Keep well

  • @blaised said in Remove dependencies that are no longer needed:

    “if it ain’t broke, don’t fix it”.

    hehehehe

remove26 dependencies18 longer18 needed12 Posts 5Views 305
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.