1. Steps to install the rpm package:
1. Find the corresponding software package, such as soft.version.rpm, and download it to this A certain directory on the machine;
2. Open a terminal, su - to become the root user;
3. cd the directory where soft.version.rpm is located;
4. Enter rpm -ivh soft.version.rpm
2. Deb package installation steps:
1. Find the corresponding software package, such as soft.version.deb, and download it Go to a directory on this machine;
2. Open a terminal, su - to become the root user;
3. cd the directory where soft.version.deb is located;
4 , enter dpkg -i soft.version.deb
(online learning video sharing:linux video tutorial)
3. tar.gz source code package installation Method:
1. Find the corresponding software package, such as soft.tar.gz, and download it to a directory on the local machine;
2. Open a terminal and su - to become root User;
3. The directory where cd soft.tar.gz is located;
4. tar -xzvf soft.tar.gz //Generally, a soft directory will be generated
5. cd soft
6, ./configure
7, make
8, make install
4. tar.bz2 source code Package installation method:
1. Find the corresponding software package, such as soft.tar.bz2, and download it to a directory on the local machine;
2. Open a terminal and su - Become the root user;
3. cd the directory where soft.tar.bz2 is located;
4. tar -xjvf soft.tar.bz2 //Generally, a soft directory will be generated
5, cd soft
6, ./configure
7, make
8, make install
5. apt installation : (Install deb package)
1. Open a terminal, su - become the root user;
2. apt-cache search soft Note: soft is the software you are looking for Name or related information
3. If the software soft.version is found in 2, use the apt-get install soft.version command to install the software
6. Install in yum mode: ( Install rpm package)
rpm is a software package name in Linux, ending with .rmp. The syntax during installation is: rpm -ivh.
There is a big shortcoming in the installation of rpm packages, that is, the correlation of files is too great. Sometimes, installing a software requires installing many other software packages, which is very troublesome.
So RedHat Little Red Hat developed the yum installation method, which can completely solve this correlation problem. It is very convenient. You only need to configure two files to install. The installation method is: yum -y install.
yum is not a package, but the software that installs the package.
Simply put: rpm can only install rpm packages that have been downloaded to the local machine. yum can download and install rpm packages online, update the system, and automatically handle dependency issues between packages, which the rpm tool does not have.
Recommended related articles and tutorials:linux tutorial
The above is the detailed content of How to install software in linux. For more information, please follow other related articles on the PHP Chinese website!