Results 1 to 8 of 8

Thread: apt-

  1. #1
    Join Date
    Apr 2008
    Beans
    98

    apt-

    guys well this may sound crazy but where are the packages installed in hard disk when apt-get install ___________ command is used i wanna know d location in d hard disk where these files r present
    "It is not how much you do, but how much love you put in the doing."

  2. #2
    Join Date
    Feb 2008
    Location
    Wiltshire, United Kingdom
    Beans
    Hidden!
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: apt-

    I've found from experience that it varies from app to app. Some install in /opt, others in /sbin, or in /etc, others in /usr/local - if you take a look at simple backup config (downloadable through synaptic) it will show you the folders it excludes (and lists the folders generally used for programs)

  3. #3
    Join Date
    Jan 2008
    Location
    /dev/null
    Beans
    2,793
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: apt-

    Quote Originally Posted by viswanathan View Post
    guys well this may sound crazy but where are the packages installed in hard disk when apt-get install ___________ command is used i wanna know d location in d hard disk where these files r present
    which <packagname> will give you the path to where the package is installed. for example:

    Code:
    chuck@chuck-desktop:~$ which gparted
    /usr/local/sbin/gparted
    the sharp eyed ones can tell thats not where gparted is usually installed

  4. #4
    Join Date
    Aug 2007
    Location
    Indonesia
    Beans
    768
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: apt-

    the downloaded files (*deb) ==> /var/cache/apt/archives

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

    Re: apt-

    Or in a terminal you could use:
    Code:
    whereis program_name
    hope that helps,
    dje

  6. #6
    Join Date
    Jan 2008
    Location
    /dev/null
    Beans
    2,793
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: apt-

    Quote Originally Posted by oedha View Post
    the downloaded files (*deb) ==> /var/cache/apt/archives
    Code:
    sudo apt-get clean
    will remove these saved packages, freeing up disk space. Once the packages are installed you wont need them, if you ever do... apt will re download them.

  7. #7
    Join Date
    Dec 2007
    Location
    Antwerp, Belgium
    Beans
    56
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: apt-

    A program in linux is not installed with all his files in the same directory (like in windows) but they are spread out across various directories. Most programs will put their main files in /usr/share (ex. Firefox). Desktop managers like gnome and KDE install in /opt. Much programs will put config files in /etc, such as apache2.
    Via synaptic you can see the properties of a package and it will list all the files the program installs and their location on your drive.
    if you remove a program with apt-get remove, most programs leave their config files (for later use). If you want to remove them to, remove the program with the --purge option. Like
    Code:
    sudo apt-get remove apache2 --purge

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

    Re: apt-

    If you want to check where all the files of a specific application are, open up synaptic package manager, right-click on an installed application, select properties and go to installed files.
    You will see many directories containing the scattered files of the one application.
    Keep it real. Keep it nice.
    [SIGPIC][/SIGPIC]Shooting Ubuntu



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
  •