Changing a package's installation location
Hello,
In Debian, when I want to install a package using the dpkg -i command, is it possible to change the installation location? Thank you. |
Accord to the man page, yes. Why would you want to do that?
|
Quote:
Thank you so much for your reply. Like Windows operating system, you can install a program in a drive other than C drive. |
Hi,
what are you actually trying to achieve here? There may be a better way. Evo2. |
Typical debian package places files in multiple directories - binaries, man pages, configuration files, etc all have their predefined directories, these directories are stored in a package, which is an ar archive, and cannot be changed at installation time. All you can change is the installation root (--instdir), but this will effectively isolate the program from the rest of the system and is useful when creating separate chrooted environments. So, no.
|
You can achieve this goal via the use of either the whereis or which commands.
example Code:
which nano Code:
|
All times are GMT -5. The time now is 11:10 AM. |