2

Some packages, like Adobe Reader and NetBeans, allow installation to /opt folder for global use. However, what should I do to install regular applications to the /opt folder?

Do I have an option to install applications in any folder I want like Windows?

VedVals
  • 3,651

1 Answers1

0

It depends on how the software is packaged.

  • If your software comes with an installer it may let you select where you want to install them;
  • If you are building your software from source, usually you can also select where it will be placed (with --prefix and DESTDIR for configure/make);
  • If you are installing your software from .debs (ie apt-get) you can't choose that. They use / as the "base path".

Regarding the last statement, please note that a .deb is basically a compressed archive with a tree structure similar to the one the package will have when installed, so you can extract them and place whenever you want. But this may or may not work well.

Salem
  • 19,864
  • 6
  • 65
  • 90