Page 1 of 1

apt autoremove in terminal

Posted: Thu Feb 07, 2019 10:41 am
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

Re: apt autoremove in terminal

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

Code: Select all

apt autoremove 
It knows the removable files.

Re: apt autoremove in terminal

Posted: Sun Feb 10, 2019 8:16 pm
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.

Re: apt autoremove in terminal

Posted: Sun Feb 10, 2019 8:34 pm
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.

Re: apt autoremove in terminal

Posted: Tue Feb 19, 2019 12:32 pm
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!