S
S
Sergey Karbivnichy2020-12-25 16:04:44
linux
Sergey Karbivnichy, 2020-12-25 16:04:44

Apt remove - why don't regular expressions work?

On the main system - (Linux Mint 19.3) apt version 1.6.1 is installed. If you enter in the console:

sudo apt purge celluloid rhythmbox simple-scan hexchat transmission-gtk thunderbird libreoffice* gnote onboard redshift timeshift* gnome-calendar
then everything works, the packages are removed, and if some packages are missing, just apt shows which packages are missing, and removes the rest.
Mint 20.1 BETA was released the other day. There apt is already version 2.0.2. Only apt behaves incorrectly. If you try to remove libreoffice, then nothing will work:
(CHROOT) [email protected]_19:/# apt remove libreoffice* 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libreoffice*

Looked at https://tracker.debian.org/pkg/apt - the latest stable version of apt is 1.8.2.2.
The question is, are regular expressions broken in apt(v2.0.2), or have they been cut out of apt?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Adamos, 2020-12-25
@hottabxp

They are not broken, they are tidied up. Instead of guessing what is regular and what is not, unambiguous apt-patterns are introduced:apt remove ?name(^libreoffice)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question