Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: What does sudo apt-get autoremove do?

  1. #1
    Join Date
    Mar 2008
    Beans
    241

    What does sudo apt-get autoremove do?

    Title says it all.

    I saw this in another post and assume it gets rid of junk.

    I couldn't find it on linuxcommand.org.

    Sorry for the basic nature of the question
    Last edited by howefield; December 23rd, 2015 at 01:55 PM.

  2. #2
    Join Date
    Oct 2005
    Location
    United Kingdom
    Beans
    4,848

    Re: What does sudo apt-get autoremove do?

    From
    Code:
    man apt-get
    ...
    autoremove
    autoremove is used to remove packages that were automatically
    installed to satisfy dependencies for some package and that are no
    more needed.
    Every time you install Jaunty, a kitten........ wait sorry what year is this again?
    Please don't PM support questions, post a thread so that everyone can benefit
    Join us in #ubuntuforums on irc.freenode.net

  3. #3
    Join Date
    Mar 2008
    Location
    Cracow in Heart
    Beans
    1,938

    Re: What does sudo apt-get autoremove do?

    Have a look here:



    This command removes packages that were installed by other packages and are no longer needed.
    Keep it real. Keep it nice.
    [SIGPIC][/SIGPIC]Shooting Ubuntu



  4. #4
    Join Date
    Jun 2007
    Location
    Greater Boston
    Beans
    1,586
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: What does sudo apt-get autoremove do?

    I would not call it junk. It removes packages no longer needed. If you search just the Ubuntu forums, you'll see a lot of commentary on this. Before running this command, I suggest backing up your package area.
    cmn

  5. #5
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: What does sudo apt-get autoremove do?

    From man apt-get
    autoremove is used to remove packages that were automatically installed to satisfy dependencies for some package and that are no more needed.
    If you want more info on a command check the man pages eg:

    Code:
    man apt-get
    Jim

  6. #6
    Join Date
    Jul 2006
    Location
    Denton, TX, US
    Beans
    1,355
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: What does sudo apt-get autoremove do?

    If you remove an application apt-get autoremove will remove the dependencies that were installed with that application and are no longer used by anything else on the system.

    Edit:
    Wow, lot of people paying attention today.

  7. #7
    Join Date
    Feb 2007
    Location
    Yorkshire, UK
    Beans
    658
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: What does sudo apt-get autoremove do?

    If you'd like to free up drive space, a useful and safe command is...

    sudo apt-get clean

    That removes the aptitude cache in /var/cache/apt/archives

    You'd be amazed how much is in there! You don't need to keep it, and the only drawback is that the packages would have to be downloaded again if you wanted to reinstall them.
    Before you criticise someone, walk a mile in their shoes. Then, when you do criticise them, you're a mile away and have their shoes.

  8. #8

    Re: What does sudo apt-get autoremove do?

    I would take the "that are no more needed." not so literally if your running 8.10 and happen to do some compiling of sources.

    APT was patched to mark all packages installed with 'apt-get build-deb' as automatically installed which then includes them immediately in 'autoremove'. (and renders using aptitude useless

    There's an option to prevent this but as of yet can't see how to apply.

  9. #9
    Join Date
    Mar 2008
    Beans
    241

    Re: What does sudo apt-get autoremove do?

    Thanks everyone, I've got the idea!
    Last edited by howefield; December 23rd, 2015 at 01:56 PM.

  10. #10
    Join Date
    Apr 2008
    Beans
    8

    Re: What does sudo apt-get autoremove do?

    can sudo apt-get autoremove be undone without reinstalling the packages u think u want to keep.
    Last edited by Godzeye; July 12th, 2010 at 10:25 AM. Reason: shhould be new thread

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •