You are not logged in.

#1 2019-10-08 18:06:29

opotonil
Member
Registered: 2009-09-12
Posts: 34

How to clean system after update to "base metapackage"?

Seem that new "base metapackage" contains less packages than the old "base group", how do I clean system after update to "base metapackage"?

Can I follow the list https://wiki.archlinux.org/index.php/Ta … se_package? and for each package of that list:

pacman -Rscn reiserfsprogs

And If I don't get errors, it isn't a dependency of another package and I can remove it securely (if I don't want it. For example I will keep "nano").

Offline

#2 2019-10-08 18:22:33

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: How to clean system after update to "base metapackage"?

That command should not produce errors.  It will recursively remove dependencies as well.
It should prompt for confirmation with the list of packages to be removed.

Offline

#3 2019-10-08 18:24:21

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,846
Website

Re: How to clean system after update to "base metapackage"?

That's one way. Another way could be to change the install reason for any install "base group" packages to "Installed as a dependency" by running

# pacman -Qqg base | pacman -D --asdeps -

Then clean your system of orphan packages as usual. e.g.

# pacman -Qqtd | pacman -Rnsu -

Any packages that you want to keep, swap the install reason back to --asexplicit

EDIT: Note that this may be a time-limited option, packages may well be updated to remove the base group membership now that there's a base package.

Last edited by WorMzy (2019-10-08 18:26:58)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2019-10-08 19:46:02

opotonil
Member
Registered: 2009-09-12
Posts: 34

Re: How to clean system after update to "base metapackage"?

WorMzy wrote:

That's one way. Another way could be to change the install reason for any install "base group" packages to "Installed as a dependency" by running

# pacman -Qqg base | pacman -D --asdeps -

Then clean your system of orphan packages as usual. e.g.

# pacman -Qqtd | pacman -Rnsu -

Any packages that you want to keep, swap the install reason back to --asexplicit

EDIT: Note that this may be a time-limited option, packages may well be updated to remove the base group membership now that there's a base package.

I like this approach, this is the list of packages to uninstall:

# pacman -Qqtd
inetutils
jfsutils
logrotate
man-db
man-pages
nano
netctl
reiserfsprogs
texinfo
usbutils
vi

But I don't know a few packages, is secure uninstall the next packages?

inetutils
texinfo
usbutils

And some packages of the list (https://wiki.archlinux.org/index.php/Ta … se_package) as "which" or "diffutils" appears marked as explicit and I never installed it:

# pacman -Qe
ark 19.08.1-1
base 2-1
bluedevil 1:5.16.5-1
breeze-gtk 5.16.5-1
btrfs-progs 5.2.2-1
chromium 77.0.3865.90-1
code 1.38.1-1
coreutils 8.31-2
crda 4.14-2
diffutils 3.7-2
dmidecode 3.2-1
dnsmasq 2.80-4
dolphin 19.08.1-1
easy-rsa 3.0.6-1
ebtables 2.0.10_4-7
elisa 0.4.2-1
file 5.37-3
filesystem 2019.10-1
gimp 2.10.12-3
git 2.23.0-1
grep 3.3-2
gst-plugins-good 1.16.1-1
gzip 1.10-2
hunspell-es_any 1:2.5-1
inkscape 0.92.4-8
intel-media-driver 19.2.1-2
intel-ucode 20190918-1
jdk8-openjdk 8.u222-2
kde-gtk-config 5.16.5-1
kdialog 19.08.1-1
kio-gdrive 1.2.7-1
konsole 19.08.1-1
kube 0.8.0-1
kwallet-pam 5.16.5-1
kwalletmanager 19.08.1-1
kwrite 19.08.1-1
kwrited 5.16.5-1
less 551-2
lib32-gcc-libs 9.2.0-2
linux 5.3.5.arch1-1
nodejs-lts-dubnium 10.16.3-1
npm 6.11.3-1
nvidia 435.21-11
okular 19.08.1-1
openssh 8.0p1-3
ovmf 1:r26214.20d2e5a125-1
picocom 3.1-1
plasma-browser-integration 5.16.5-1
plasma-desktop 5.16.5-1
plasma-pa 5.16.5-1
powerdevil 5.16.5-1
qemu 4.1.0-2
qt5-virtualkeyboard 5.13.1-1
rng-tools 6.7-2
samba 4.10.8-1
sddm-kcm 5.16.5-1
sed 4.7-2
snapper 0.8.3-2
spectacle 19.08.1-1
tar 1.32-2
unrar 1:5.8.2-1
user-manager 5.16.5-1
virt-manager 2.2.1-1
watchman 4.9.0-2
which 2.21-4
xdg-user-dirs 0.17-2
xorg-server 1.20.5-2
xorg-xrandr 1.5.1-1

Last edited by opotonil (2019-10-08 19:48:53)

Offline

#5 2019-10-08 19:55:25

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: How to clean system after update to "base metapackage"?

Does your system have any contents not managed by pacman that relies on the packages you are unsure about?

Offline

#6 2019-10-08 20:02:17

opotonil
Member
Registered: 2009-09-12
Posts: 34

Re: How to clean system after update to "base metapackage"?

loqs wrote:

Does your system have any contents not managed by pacman that relies on the packages you are unsure about?

No, the only package installed manually is "Android Studio".

Offline

#7 2019-10-08 21:17:34

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,846
Website

Re: How to clean system after update to "base metapackage"?

Those'll be the first examples of base group membership getting removed:

https://git.archlinux.org/svntogit/pack … 9a9b253cf9
https://git.archlinux.org/svntogit/pack … 27c125d218

There may already be others. Oh well, I did say it was probably time limited, I was apparently more right than I knew. wink


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#8 2019-10-08 22:16:36

opotonil
Member
Registered: 2009-09-12
Posts: 34

Re: How to clean system after update to "base metapackage"?

Yea, this seems the current state (extracted from git comment):

https://www.archlinux.org/todo/base-group-removal/

Offline

#9 2019-10-08 22:20:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: How to clean system after update to "base metapackage"?

I just wrapped this into my normal maintenance.  I get the `pacman -Qettq` list and filter out anything in base-devel.  Then anything on the resulting list I decide if I want it, or if I should remove it.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#10 2019-10-08 23:00:38

xerxes_
Member
Registered: 2018-04-29
Posts: 675

Re: How to clean system after update to "base metapackage"?

And what will happen if I don't "clean" system after install "base meta-package"? Will I have any dependency problems, collisions, etc.?

Last edited by xerxes_ (2019-10-08 23:01:18)

Offline

#11 2019-10-08 23:06:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: How to clean system after update to "base metapackage"?

No.  You'll just have explicitly installed packages that you may not actually need.  But you've already had all of them installed the whole time you have been using arch.  If they haven't bothered you before, there'd be no reason they should now.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB