Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

apt autoremove in terminal

Post Reply
Bierhundt
Forum Regular
Forum Regular
Posts: 164
Joined: Wed Jan 31, 2018 12:12 pm

apt autoremove in terminal

#1

Post by Bierhundt » Thu Feb 07, 2019 10:41 am

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: 19242
Joined: Wed Jul 12, 2006 2:17 pm

Re: apt autoremove in terminal

#2

Post by richb » Thu Feb 07, 2019 10:58 am

Just use

Code: Select all

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

Rich
SSD Production: MX 18.1
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB, 350 GB HD

Bierhundt
Forum Regular
Forum Regular
Posts: 164
Joined: Wed Jan 31, 2018 12:12 pm

Re: apt autoremove in terminal

#3

Post by Bierhundt » Sun Feb 10, 2019 8:16 pm

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
Forum Veteran
Forum Veteran
Posts: 19823
Joined: Fri Dec 15, 2006 8:07 pm

Re: apt autoremove in terminal

#4

Post by Stevo » 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.

Bierhundt
Forum Regular
Forum Regular
Posts: 164
Joined: Wed Jan 31, 2018 12:12 pm

Re: apt autoremove in terminal

#5

Post by Bierhundt » Tue Feb 19, 2019 12:32 pm

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”