I have learn linux recently, but i confused about how linux system works, especially about how linux handle program files, in windows all program is in one directory Programfiles (and some in Windows) but in linux, when i install program automaticly (apt) i think its "randomly" place the program files not in one place (not just programfiles folder).

Can i change DEFAULT place/folder of program in linux? I have linux mint 17.3 64 bit.


2 Answers 2


In short: As long as you use the package manager that comes with your Linux distribution, you can't change the place where the binaries are installed. However, the installation paths follow a long-established convention (with minor differences between distributions).

If you build packages on your own you could, in theory, choose the installation prefix yourself, but usually departing from the conventions comes with some kind of penalty (read: It's a bad idea if you don't know exactly what you're doing).


Generally not: most programs on Linux are packages, which could be relocatable. However few are setup to allow relocation. In particular, systems (such as Mint) derived from Debian do not provide relocatable packages. RPM-based systems may include some relocatable packages.

Further reading:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .