Linux Common Software Installation method _unix Linux

Source: Internet
Author: User

Current Linux packages can usually be found from the release CD or from the Internet. Its general format source code and executable code two kinds. To save disk space or download time, most of the software is packaged to exist in a compressed file format.

Common packages are like file.tar.gz, file.src.tar.gz, file.rpm, and so on.

Before introducing the common installation method, it is necessary to remind you to first develop a good habit of operation. Because of the advanced nature of Linux design and the features of multi-user use, you can follow the following guidelines as much as possible throughout the installation process:
1. If you don't want to mess up your catalog, you'll need to build a readable directory before downloading the software. And not only you can understand what it means. At the same time, it's easy to remember what's in it next time you see it.
2, unless you are simply to install software to install software, otherwise, before installing the software you need to have a backup directory, preferably off-site backup. Designed to store your favorite or important software packages.
3. Before trying out a new software, please do not try running on a machine that is currently running business or has important data but has not yet been properly backed up. That you can't take the risk.
4, in the installation as far as possible as root execution of various orders. After the installation is complete, check the permissions carefully.
5, the installation of the temporary directory generated as far as possible put it into the/tmp directory. The beginning of a good practice is to put the software you want to install into the/tmp directory in the first place. Don't forget to delete it after you are sure that it has been installed successfully.
6, know your CPU and Linux version type, download the appropriate software package. If a variety of formats exist, it is recommended to use the RPM format package. Because it is easy to use and easy to make mistakes.
Well, you can start now.

For the. At the end of the RPM package, you can simply execute RPM-IVH file.rpm. If it prompts you to be missing something, you have to fill it up first. If it prompts that the package has been installed, but may be incomplete or otherwise you want to force the installation of the package, then you type the following command: RPM-IVH--replacepkgs file.rpm.

You may encounter various conflicts when installing the RPM package. In particular, when you want to install the latest package in the older version, there are often some similar tips:
Failed dependencies:
Kernel >=2.2.10 is needed by file. x.x.x
File. x.x.x=0.80.1 is needed by otherfile.y.y.y

This kind of information indicates that you need to upgrade your Linux kernel to 2.2.10 in order to use the new software, and you must install another package otherfile.y.y.y to install file.x.x.x. The--nodeps option allows you to ignore the review of package dependency issues, but this practice is often not recommended.

For software packaged in the RPM format, if you previously had an older version of the software, you generally have to prioritize the upgrade rather than the installation mode, because you can keep the configuration file. Even if the old version does not exist, the upgrade mode will not go wrong.
Therefore, you can fully use the following command: RPM-UVH file.rpm.
For more information on RPM, see the other articles in this site:

Because Linux advocates DIY and advocating individuality, in order to make the software more suitable for your machine, but also in order to advocate open source and the spirit of sharing, will generally be in the form of source download. If you get a package like this, you'll have to recompile the package after you unzip it.

First put the package in the/tmp directory, and then execute
Tar zxvf file.src.tar.gz.

At this point, you usually have to see what kind of directory after decompression, whether there is a readme or install software. If so, please read it carefully first. If you understand it, then you don't have to look at this document. The general steps are: Make;makeinstall such two steps. Obviously, you will use the gcc--which should be available in all distributions. It usually asks which directory to put in the software installation. You usually put it in the/USR catalogue. If your/usr directory is set as a read-only partition (this is usually based on security considerations), then you can put it in the/home/bin/local/bin/file directory. The premise is that this is also one of your good habits. The next time will not be able to find the line.

If you are using a well-known release like Redhat, there will be an intuitive and Easy-to-use package-specific tool pkgtool. The name will vary depending on the distribution. At this point, you will be able to complete the installation of the software package just between click and hit.

Copyright Disclaimer: You may freely disseminate this document for non-commercial purposes, but you may not make any changes. If you have any technical questions or questions in this document, please feel free to communicate.

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.