Explain how to install software tar.gz rpm deb under linux

  • 2020-05-15 03:20:02
  • OfStack

On the Linux system, software installers are quite complex, but there are two most common types:

1) one is the source code of the software, you need to compile it yourself. This software installation package is usually an tar package compressed with gzip (suffix.tar.gz).

2) the other one is an executable program of software, you just need to install it. This software installation package is usually referred to as an RPM package (Redhat Linux Packet Manager, Redhat's package manager), with the suffix.rpm.

Of course, it is also useful to package the source code in rpm format, with gzip compressed executable package. As long as you understand the following train of thought, these two forms of installation packages are no problem.

Below, we will be divided into two parts to explain the software installation ideas:

Part 1: get it done.tar.gz

1. First, unpack the bag using tar-xzvf, as follows:


#tar -xzvf apache_1_3_6_tar.gz

This creates a new directory (directory name similar to the file name of the.tat.gz package) in the current directory to hold the unzipped content. In this case, apache_1.3.6

2. Enter this directory and use the ls command to view the files contained under 1, as follows:


# To formulate cd apache_1.3.6
#ls

Observe which of the following files is included in this directory: configure, Makefile, or Imake.

1) if it is an configure file, execute:


#./configure 
#make
#make install

2) if it is an Makefile file, execute:


#make
#make install

3) if it is an Imake file, execute:


#xmkmf
#make
#make install

3. If you don't get any errors, you're done. As for where the software is installed, it usually appears at installation time. Otherwise you can only refer to 1 README, or ask me, :-)

If you get an error, don't worry, it's usually a simple question:

1) no C or C++ compiler is installed;

Diagnosis: execute gcc (C++ is g++), indicating that the command cannot be found.

Solution: install the Linux CD mount, then enter the RPMS directory, and execute the command:

# rpm-ivh gcc* (haha, we used the second installation)

2) make tools are not installed;

Method of diagnosis: execute command make, this command cannot be found.

Solution: install Linux cd-mount, then enter the RPMS directory, and execute the following command:


#rpm -ivh make* 

3) autoconf tools are not installed;

Method of diagnosis: execute command make, this command cannot be found.

Solution: install the Linux disc mount, then enter the RPMS directory, and execute the command:


#rpm -ivh autoconf* 

4) missing some link libraries;

Method of diagnosis: at make, certain documents are required.

Solution: install the package that contains this file, which will need to accumulate.

Part 2: done.rpm

RPM is a software package manager launched by Red Hat with Redhat Linux, which makes it easier to install software.

1. Install software: execute rpm-ivh rpm package name, as follows:


#rpm -ivh apache-1.3.6.i386.rpm

2. Software upgrade: execute rpm-Uvh rpm package name.

3. Uninstall: execute rpm-e rpm package name.

4. Query package details: execute rpm-qpi rpm package name

5. Query for a file that belongs to the rpm package: execute the rpm-qf rpm package name

6. Check what files the package will write to the system: execute the rpm-qpl rpm package name

Part 3: done.deb

deb is the format of ubuntu and debian.

rpm is the format of redhat, fedora, suse.

They are not generic (although you can convert 1).

deb is a software package for the debian distribution

ubuntu is based on all available debian releases

.deb is the name of the installation package suffix under the solaris system. The installation method is as follows

cd to the installation package directory

dpkg -i installation package name

If you are using red hat linux, then run the following command to install it

cd to the installation package directory

rpm -ivh installation package name


Related articles: