is Linux software installed in the/usr,/usr/local/or/opt directory?

Source: Internet
Author: User

Turn from: 48324377

Linux Software Installation directory is also very fastidious, understand this, in the management of the system is beneficial

/usr: A system-level directory that can be understood as C:/Windows/ , /usr/lib understood as C:/Windows/System32 .
/usr/local: User-level program directory, can be understood as C:/Progrem Files/ . User-compiled software is installed by default in this directory.
/opt: User-level program directory, can be understood as D:/Software , opt has an optional meaning, here can be used to place a third-party large software (or game), when you do not need, directly rm -rf drop. /OPT can also be mounted on a separate disk for use when hard disk capacity is insufficient.

Where is the source stacking?
/usr/src: The system-level source directory.
/usr/local/src: User-level source directory.

-----------------Translation-------------------

/opt

Here's where optional stuff is put. Trying out the latest Firefox beta? Install it to/opt where can delete it without affecting other settings. Programs in this usually live inside a single folder Whick contains all of their data, libraries, etc.
Here the main storage of those optional programs. Would you like to try out the latest Firefox beta? Then put it in the/opt directory, so that when you try to erase Firefox, you can delete it directly, without affecting any other system settings. The program installed in the/OPT directory, all of its data, library files, etc. are placed under the same directory.
For example: Just installed the beta version of Firefox, can be installed in the/opt/firefox_beta directory, the/opt/firefox_beta directory contains all the files needed to run Firefox, libraries, data and so on. To remove Firefox, you can simply delete the/opt/firefox_beta directory.

/usr/local

This is the where most manually installed (ie. outside of the your package manager) software goes. It has the same structure as/usr. It is a good idea to leave/usr to your package manager and put any custom scripts and things into/usr/local, since Nothi Ng important normally lives in/usr/local.

The main store is the software that is installed manually, that is, software that is not installed through "new" or apt-get. It has a similar directory structure to the/usr directory. Let the package Manager manage the/usr directory, and put the custom script (scripts) under the/usr/local directory, I think this should be a good idea.

is Linux software installed in the/usr,/usr/local/or/opt directory?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.