Results 1 to 9 of 9

Thread: A question about linux

  1. #1
    Join Date
    Dec 2006
    Beans
    51

    A question about linux

    In linux, when you remove a program is it fully removed.. what I mean is..in windows when ever you removed a program there would be stuff left over, than you would need to run a registery program to remove what ever it left... or delete it manually..
    does the same apply to linux?

  2. #2
    Join Date
    Jun 2007
    Location
    England
    Beans
    760
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: A question about linux

    To completely remove a program (including config files) do the following in a terminal:
    Code:
    sudo apt-get autoremove --purge program_name
    or in synaptic mark the program for complete removal

    if you dont do the above then the program will be removed but dependencies and config files will remain

    hope that helps,
    dje
    Last edited by dje; June 8th, 2008 at 09:56 PM.

  3. #3
    Join Date
    Nov 2007
    Beans
    49

    Re: A question about linux

    can the --purge option delete depended files ?

  4. #4
    Join Date
    Jun 2007
    Location
    England
    Beans
    760
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: A question about linux

    the autoremove removes dependencies and the --purge option removes config files

    dje
    Last edited by dje; June 8th, 2008 at 10:57 PM.

  5. #5
    Join Date
    Jan 2007
    Beans
    6,537
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: A question about linux

    Synaptic can completely remove packages too. Just right click and select "remove completely". That'll also get rid of any config files in your /home.

  6. #6
    Join Date
    Dec 2006
    Beans
    51

    Re: A question about linux

    Wow, seems pretty easy.

  7. #7
    Join Date
    Oct 2007
    Location
    Athens, Greece
    Beans
    179
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: A question about linux

    It may occasionally be a configuration file left in your $HOME, but you can safely remove it as well.
    Beware of he who would deny you access to information, for in his heart he dreams himself your master.

  8. #8
    Join Date
    Feb 2006
    Location
    San Antonio
    Beans
    347
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: A question about linux

    the --purge will not delete dependencies if those depencies are required for other programs.

    It does delete your configuration files

    When you download something from the repositories, it saves the deb to

    /var/cache/apt/archives

    --purge also makes a point of eliminating this hard copy.
    Josh Beck
    Northeast Independent School District
    KSAT (Krueger School of Applied Technologies)
    http://linuxclassroom.com

  9. #9
    Join Date
    Mar 2008
    Beans
    349
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: A question about linux

    I would note that if you have the space, leaving the configuration files in your $HOME might be a good idea. For instance, if I for some reason get rid of compiz, I may want to leave my custom settings intact (~/.compiz), so that if I wake up the day after and realize i shouldn't have deleted it, I can simply re-install it and it'll use my old settings.

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
  •