Code: Select all
apt-get install sudo
Code: Select all
apt-get install synaptic
Code: Select all
apt-get install sudo
Code: Select all
apt-get install synaptic
Yes.RedPieDad wrote:I used the:to install "sudo". And I usedCode: Select all
apt-get install sudo
to install "synaptic package manager". Do these packages automatically know the "correct/optimal" directory to install at with the "apt-get" command?Code: Select all
apt-get install synaptic
You can change the directory where the file is installed through dpkg. AFAIK you can only change dpkg's root directory where it installs software.RedPieDad wrote:And lets say I wanted to change the directory of the installation, what command(s) at installation would I use to alter it's configured folder path?
It is not something I would recommend though. Unless you know what you are doing.--instdir=dir
Change default installation directory which refers to the directory where packages are to be installed. instdir is also the directory passed to chroot(2) before running package's installation scripts, which means that the scripts see instdir as a root directory. (Defaults to /)
Instead of asking how to do this, tell us what it is you really want to do. In other words, what do you hope to achieve by this? For instance, do you need to manage space on different partitions? If so, there are better ways to do it.RedPieDad wrote:And lets say I wanted to change the directory of the installation, what command(s) at installation would I use to alter it's configured folder path?
Code: Select all
apt-get update
Code: Select all
apt-get upgrade
All package installation tools call dpkg, and dpkg installs files in the appropriate system directories automatically based on the directory structure in the package itself.RedPieDad wrote:Do these packages automatically know the "correct/optimal" directory to install at with the "apt-get" command?
Firstly, you don't. There's no reason to do this unless you are installing software manually from a non-debian package - in which case you specify the installation path when compiling the software.RedPieDad wrote:And lets say I wanted to change the directory of the installation, what command(s) at installation would I use to alter it's configured folder path?