I was about to play around on my virtual machine running Ubuntu 12.04. I installed GIT-CORE using apt-get install git-core from repos. First I thought the apt-get command will install in the folder I am in, but I was wrong. So is there a way to directly tell apt-get where to install ?  Or do I have to move the files later? Let me know your best solution for this.
39425
I'd like to install software packages, similar to apt-get install &lt;foo&gt; but:   Without sudo, and Into a local directory   The purpose of this exercise is to isolate independent builds in my  server.  I don't mind compiling from source, if that's what it takes, but obviously I'd prefer the simplest approach possible. I tried apt-get source --compile &lt;foo&gt; as mentioned  but I can't get it working for packages like autoconf. I get the following error:  dpkg-checkbuilddeps: Unmet build dependencies: help2man  I've got help2man compiled in a local directory, but I don't know how to inform apt-get of that. Any ideas?  UPDATE: I found an answer that almost works at . The problem with chroot is that it requires sudo. The problem with apt-get source is that I don't know how to resolve dependencies. I must say, chroot looks very appealing. Is there an equivalent command that doesn't require sudo?
77933
I am completely new to linux and hence Ubuntu. Though i have been using the Ubuntu OS on my system for a while, it is for the first time I am trying to learn the nuances and hence starting with the documentation.  I am wondering , if we use apt-get command to install packages, what does apt-get install aptitude do ?
102206
I've noticed that the majority of Ubuntu help websites present apt commands in the following format:  sudo add-apt-repository ppa:[ppa-address] sudo apt-get update sudo apt-get install [application-name]   But I know that apt commands like this one work too:  sudo add-apt-repository ppa:[ppa-address] &amp;&amp; sudo apt-get update &amp;&amp; sudo apt-get install [application-name]   Is there a particular reason that most sites present in the first format? Are there known issues with chaining commands with &amp;&amp;, or to put it another way are there any benefits/drawbacks to using either method?  Further, other then loss of internet, are there any circumstances in which an apt command might fail?
60052
If I'm installing from source, do I need to keep the extracted tarball directory?  So if I download the git tarball. I then do:  tar -xvzf git.tar.gz   This will create a git.x.x. directory, into which I cd, then run ./configure etc. Once I'm done with this process, and git, or whatever is installed, do I need to keep the original git.x.x extracted directory, or is that just used for compiling the program?  I'm somewhat confused by all the directories, and folders used for programs.
88770
I see that apturl is installed on my computer, but I can't seem to locate it.  Can anybody tell me how I can find an installed application on this computer? I am getting very frustrated.
11370
I know that packages installed with apt-get are stored in /var/cache/apt/archives.  I just installed mariadb server in Ubuntu 16.04 with following command:  sudo apt install mariadb-server   When I tried to find packages in /var/cache/apt/archives, there are no packages. Where are they stored if it's not in this directory?
60914
Is it possible to set up a server to mirror a distro's repository, but only download/store requested upgrades or new packages rather than download them all?  So all computers on the LAN can connect to this server for all upgrades so they only have to be downloaded once.  I've looked at apt-mirror but that seems to download everything.
20789
I have accidentally removed apt-get, how do I reinstall it?  $ sudo apt-get update sudo: apt-get: command not found  $ sudo dpkg-reconfigure apt /usr/sbin/dpkg-reconfigure: apt is broken or not fully installed    I would like to mention I do not want to reinstall Linux!
8558
I would like to ask a very basic question but I have never thought about it before. Well, when someone installs an application from terminal, he has to add the repository first, right? On the other side, when someone installs an application from the Ubuntu Software Center, is the repository then added automatically?  I am asking those questions to figure out this: When I run update and then upgrade, will this application be upgraded or not? Is the result same in two options?
3727
When I try to install any package through the command line, I get an error.   $ sudo apt-get install &lt;package&gt; Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package &lt;package&gt;   Can anyone help me on this?
13808
I'm having some difficulties exactly understanding how the the whole update thing work in Ubuntu and good practice for installing software.  I understand I have a  /etc/apt/sources.list file where all my repositories are listed, and that these repositories are queried when I use apt-get update - to later be used with e.g. apt-get upgrade.  This makes perfect sense and I recently installed spotify by adding deb http://repository.spotify.com stable non-free to this "sources" list.    But then I got confused...  When I went to download Google Chrome I merely had to download and grab a .deb file, and Chrome installed with no problem... but I don't see any new entry in /etc/apt/sources.list...  So how does apt-get update know where to query concerning Chrome updates?  Has it somehow been added to one of the already listed repositories in the sources file?  I would like all my installed software to be encompassed by the update function.
110646
When running:  sudo apt-get install quickly   To install quickly I get this output:  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package quickly   Why the error and how can I install it then?
6262
What is difference of apt-get and aptitude? Does both of them use same repositories?  Which one is better?
20048
What does the apt-get install ... command do?  When I enter apt-get install ... command, there are some texts appearing on the screen, but that does not have enough information for me. I want to know if any file is created / edited, any service is started and other activities...  Is there any .sh file executed when the apt-get install ... run? If so, how can I see the content of that sh file?  The reason for this question is recently I tried to install tomcat7 with apt-get install tomcat7. Everything works fine until I install tomcat7-admin (manager web application), the server became unresponsive to any request. I tried this many times, and this always happen.
31146
In Ubuntu one can add a repository via following command -   sudo add-apt-repository ppa:yannubuntu/boot-repair   As Ubuntu is based on Debian code base, I was expecting that the same would work in Debian too, but it doesn't.   What is the reason for this? Is there some other shell command I can use to achieve the same?   Note:  I know I can edit /etc/apt/sources.list, but I want to achieve this from the shell. I also want to know why the same command won't work when the code base is the same.
2858
Does apt-get use https or any kind of encryption? Is there a way to configure it to use it?
15236
when i run these: sudo apt-get install bitcoin  OR sudo apt-get install bitcoin-qt  i get &quot;E: Unable to locate package&quot; what do i do?