apt autoremove in terminal

Post Reply
Message
Author
Bierhundt
Posts: 186
Joined: Wed Jan 31, 2018 12:12 pm

apt autoremove in terminal

#1 Post by Bierhundt »

After upgrading my wife's MX laptop, (Dell Latitude D430) there was a list of things that were installed, but no longer necessary, so it said to use apt autoremove to free up some space. Her laptop has a small hard drive so I try to save as much space as possible ;>).

Every time I use the command, I get this:

Code: Select all

bash: syntax error near unexpected token `(' 
I'm the root user, I've tried removing all of the '()'s but still no joy - I don't get this ..... what am I missing? Am I trying to remove too many at once?

Code: Select all

apt autoremove gmerlin-data (1.2.0~dfsg+1-5) gmerlin-plugins-base (1.2.0~dfsg+1-5+b1) libgavl1 (1.4.0-4) libgegl-0.3-0 (0.3.8-4) libgmerlin0 (1.2.0~dfsg+1-5+b1) libllvm3.9 (1:3.9.1-9) libqt4-declarative (4:4.8.7+dfsg-11) libqt4-designer (4:4.8.7+dfsg-11) libqt4-help (4:4.8.7+dfsg-11) libqt4-script (4:4.8.7+dfsg-11) libqt4-scripttools (4:4.8.7+dfsg-11) libqt4-svg (4:4.8.7+dfsg-11) libqt4-test (4:4.8.7+dfsg-11)   libqt4-xmlpatterns (4:4.8.7+dfsg-11)   libqtassistantclient4 (4.6.3-7+b1)   libquicktime2 (2:1.2.4-10+deb9u1) libva-drm1 (1.7.3-2) libva-wayland1 (1.7.3-2) libva-x11-1 (1.7.3-2)   libva1 (1.7.3-2) libvisio-0.1-1 (0.1.5-4+b1) libvlccore8 (2.2.8-2~mx17+1) python-qt4 (4.11.4+dfsg-2+b1)
TIA

User avatar
richb
Administrator
Posts: 10345
Joined: Wed Jul 12, 2006 2:17 pm

Re: apt autoremove in terminal

#2 Post by richb »

Just use

Code: Select all

apt autoremove 
It knows the removable files.
Forum Rules
Guide - How to Ask for Help

richb Administrator
System: MX 23 KDE
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB

Bierhundt
Posts: 186
Joined: Wed Jan 31, 2018 12:12 pm

Re: apt autoremove in terminal

#3 Post by Bierhundt »

richb wrote: Thu Feb 07, 2019 10:58 am Just use

Code: Select all

apt autoremove 
It knows the removable files.
Thanks richb, I appreciate it.

User avatar
Stevo
Developer
Posts: 12841
Joined: Fri Dec 15, 2006 8:07 pm

Re: apt autoremove in terminal

#4 Post by Stevo »

Apt also doesn't understand parenthesis, so that's why it throws the syntax error when you include the "(1.2.0~dfsg+1-5)" and the like in your command.

Bierhundt
Posts: 186
Joined: Wed Jan 31, 2018 12:12 pm

Re: apt autoremove in terminal

#5 Post by Bierhundt »

Stevo wrote: Sun Feb 10, 2019 8:34 pm Apt also doesn't understand parenthesis, so that's why it throws the syntax error when you include the "(1.2.0~dfsg+1-5)" and the like in your command.
Ahhhh amazing what you forget over time when not using the command line! Thanks Stevo!

Post Reply

Return to “General”