In
When installing software in Windows, you only need to run the software installation program (setup, install
Or decompress the software such as zip to unmount the software. Run the uninstall, unware, and uninstall programs to clean up the software and use a completely graphical operation interface.
It's as easy as clicking "Next" with the mouse. Linux seems to be different. Many Beginners complain that it is very difficult to install and uninstall software in Linux.
Windows is so intuitive. In fact, installing and uninstalling software in Linux is also very simple. There are also installation wizard or unzipping installation methods, except for binary software distribution.
In addition, there are many source code
The following describes how to install and uninstall the software package:
I. Installation and uninstallation of binary distribution software packages
The binary distribution of Linux software refers to the release form of a compiled binary software package. Its advantage is that it is easy to install and use, and its disadvantage is that it lacks flexibility, if the software package is compiled for a specific hardware/operating system platform, it cannot be correctly executed on another platform or environment.
1. * binary software package in RPM format
Installation: rpm-IVH *. rpm
Uninstall: rpm-e packgename
Note: rpm (RedHat packge
Manager) is a software package manager developed by RedHat. It can easily install, upgrade, uninstall, verify, query, and perform other operations on software packages in RPM format. It is easy to install and unload.
You can also delete files installed in multiple directories when installing the software. Therefore, it is recommended that you use software packages in RPM format as much as possible for beginners. In RPM parameters,-I is the installation,-V is the verification, and-H is the hash character.
Shows the installation progress. *. rpm is the file name of the software package (here *. RPM refers to files other than *. SRC. RPM suffixed with rpm). Parameter-E is the software deletion.
Packgename is the package name, which is different from the package file name. It is often a string in the file name that is located before the version number, such as APACHE-3.1.12-
I386.rpm and apache-devel-3.1.12-i386.rpm are Package Names whose packages are Apache and APACHE-
Devel. For more RPM parameters, see man rpm.
If you do not like to install or uninstall these software packages on the Character interface, you can use graphical software package management programs such as glint and xrpm in X-window, or the kpackge of KDE. You can easily install, upgrade, uninstall, verify, and query the software package by clicking the mouse.
2. Binary packages in the form of * .tar.gz/*. tgz and *. bz2
Installation: Tar zxvf * .tar.gz or tar yxvf *. bz2
Uninstall: manually delete
Note: The binary software package in the form of * .tar.gz/*. bz2 is packaged and used with the tar tool.
For gzip/Bzip2 compression, you can directly unpack the package during installation. For software that only has a single directory after decompression, run the command "RM-RF
"Software Directory Name"; if files are scattered in multiple directories after decompression, you must manually delete them one by one (a little effort). To know which files are installed in the system during decompression, you can run the "Tar ztvf" command
* .Tar.gz "/" Tar ytvf
*. Bz2 "to get the list. The tar Parameter Z is to call gzip for decompression, X is to unpack, V is to verify, F is to show the result, Y is to call Bzip2 for decompression, and T is to list the file list of the package. More Parameters
For more information, see man tar.
If you prefer graphic operations, you can use KDE's Ark compression file management tool in X-window.
3. provide software packages for the installation program
These software packages already provide installation scripts or binary Installation Wizard programs (setup,
Install, install. Sh, etc.), you only need to run it to complete the installation of the software, and the uninstallation script or program is also provided accordingly. For example, sun's
StarOffice office software suite uses the Setup installer and provides the reverse installation function after the software is installed. Currently, this type of software package is relatively small because of its installation and uninstallation
The method is the same as that of windows, so you don't need to talk about it.
Ii. Installation and uninstallation of source code distribution software packages
The source code distribution of Linux software refers to the release form of the source code of all programs of the software. You need to compile and install the executable binary code on your own. The advantage is that the configuration is flexible, some functions/modules can be removed or retained at will to adapt to a variety of hardware/operating system platforms and compiling environments. The disadvantage is that it is difficult and is generally not suitable for beginners.
1. * Source code package in the form of SRC. rpm
Install: rpm-rebuild *. SRC. rpm
CD/usr/src/Dist/RPMS
Rpm-IVH *. rpm
Uninstall: rpm-e packgename
Note: The rpm -- rebuild *. SRC. RPM command compiles the source code and generates a binary RPM package under/usr/src/Dist/RPMs. then install the Binary Package. Packgename is described above.
2. Source Code packages in the form of * .tar.gz/*. tgz and *. bz2
Install: Tar zxvf * .tar.gz or tar yxvf *. bz2 first
Then go to the decompressed directory:
./Configure Configuration
Make Compilation
Make install Installation
Uninstall: Make uninstall or manually delete
Note: It is recommended to read the instruction file after decompression to learn about the installation requirements and change the compilation configuration when necessary. The source code of some software packages can be compiled and installed using make
If this function is not provided, the software must be manually deleted. Because the software may install files in multiple directories of the system, it is difficult to delete the files,
You should configure the software before compilation, and specify the software to be installed to the target path:./configure -- prefix = directory name, so that you can use "RM-RF
"Software Directory Name" command to clean and thoroughly Uninstall. Compared with other installation methods, it is the most difficult to compile and install by yourself. It is suitable for users who already have some experience in Linux. It is generally not recommended for beginners.
.
Lanche has already talked about how to install and Uninstall Linux software.
Do you know whether a tar.gz/bz2 package is a binary package or a source code package? If you have used a compression tool, you will understand that the compressed package may not be software, it may also be a lot of pictures backed up, or it may be
The best way to distinguish the Common Data packaged together is to view the file list in the package and run the command tar ztvf * .tar.gz/tar ytvf.
*. Bz2 or graphical Ark compression file management tools can be used in X-window. Files in the source code package often contain various source code files. header files *. h and C source code files
Parts *. c, C ++ code source file *. CC /*. CPP and so on; while files in the binary package will have executable files (the same name as the software is often the main execution file), which indicates that the path contains
Bin directory (only a few exceptions ). It's so easy. You can't try it now!
Zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Most of the content in the following three documents is the same, so I am too lazy to sort them out !!
Article 1:
Install and uninstall software in Linux
When installing software in Windows, you only need to run the installation program (setup, install, etc.) of the software or unzip the software by Using ZIP. Then, you can run the anti-installation program.
(Uninstall, unware, "Uninstall", etc.), you can clear the software, a completely graphical operation interface, simply by clicking "Next" with the mouse. While
Linux seems to be different. Many Beginners complain that it is very difficult to install and uninstall software in Linux, not as intuitive as when using Windows. In fact, install and
It is also very easy to uninstall the software. There are also installation wizard or decompression installation methods, but not the same, except for binary software distribution, there are many software packages distributed in the form of source code, next
The installation and uninstallation of these software are described in detail:
I. Installation and uninstallation of binary distribution software packages
The binary distribution of Linux software refers to the release form of a compiled binary software package. Its advantage is that it is easy to install and use, and its disadvantage is that it lacks flexibility, if the software package is compiled for a specific hardware/operating system platform, it cannot be correctly executed on another platform or environment.
1. * binary software package in RPM format
Installation: rpm-IVH *. rpm
Uninstall: rpm-e packgename
Note: rpm (RedHat packge
Manager) is a software package manager developed by RedHat. It can easily install, upgrade, uninstall, verify, query, and perform other operations on software packages in RPM format. It is easy to install and unload.
You can also delete files installed in multiple directories when installing the software. Therefore, it is recommended that you use software packages in RPM format as much as possible for beginners.
In RPM parameters,-I is the installation,-V is the verification, and-H is the use of hashes to display the installation progress ,*. rpm is the file name of the software package (here *. RPM refers *. SRC. to
Rpm is a file with a suffix). The parameter-E is used to delete a software package, and packgename is the name of a software package, which is different from the file name of the software package. It is usually a string located before the version number in the file name. For example:
For example, if the apache-3.1.12-i386.rpm and apache-devel-3.1.12-i386.rpm are the package file names, their package names are
Apache and APACHE-devel. For more RPM parameters, see man rpm.
If you do not like to install or uninstall these software packages on the Character interface, you can use graphical software package management programs such as glint and xrpm in X-window, or the kpackge of KDE. You can easily install, upgrade, uninstall, verify, and query the software package by clicking the mouse.
2. Binary packages in the form of * .tar.gz/*. tgz and *. bz2
Installation: Tar zxvf * .tar.gz or tar yxvf *. bz2
Uninstall: manually delete
Note: The binary software package in the form of * .tar.gz/*. bz2 is packaged with the tar tool and compressed with gzip/Bzip2. You can unpack the package directly during installation. Only one object after decompression
When uninstalling the software, run the command "RM-RF
"Software Directory Name"; if files are scattered in multiple directories after decompression, you must manually delete them one by one (a little effort). To know which files are installed in the system during decompression, you can run the "Tar ztvf" command
* .Tar.gz "/" Tar ytvf
*. Bz2 "to get the list. The tar Parameter Z is to call gzip for decompression, X is to unpack, V is to verify, F is to show the result, Y is to call Bzip2 for decompression, and T is to list the file list of the package. More Parameters
For more information, see man tar.
If you prefer graphic operations, you can use KDE's Ark compression file management tool in X-window.
3. provide software packages for the installation program
This type of software package has provided installation scripts or binary Installation Wizard programs (setup, install, install. Sh, etc.), you only need to run it to complete the installation of software; and uninstall
The anti-installation script or program is also provided. For example, sun's StarOffice Software Package uses the Setup installer and provides the uninstalled
Function. Currently, this type of software package is relatively small. Because it is installed and uninstalled in the same way as Windows software, you do not need to talk about it more.
Ii. Installation and uninstallation of source code distribution software packages
The source code distribution of Linux software refers to the release form of the source code of all programs of the software. You need to compile and install the executable binary code on your own. The advantage is that the configuration is flexible, some functions/modules can be removed or retained at will to adapt to a variety of hardware/operating system platforms and compiling environments. The disadvantage is that it is difficult and is generally not suitable for beginners.
1. * Source code package in the form of SRC. rpm
Install: rpm-rebuild *. SRC. rpm
CD/usr/src/Dist/RPMS
Rpm-IVH *. rpm
Uninstall: rpm-e packgename
Note: The rpm -- rebuild *. SRC. RPM command compiles the source code and generates a binary RPM package under/usr/src/Dist/RPMs. then install the Binary Package. Packgename is described above.
2. Source Code packages in the form of * .tar.gz/*. tgz and *. bz2
Install: Tar zxvf * .tar.gz or tar yxvf *. bz2 first
Then go to the decompressed directory:
./Configure Configuration
Make Compilation
Make install Installation
Uninstall: Make uninstall or manually delete
Note: It is recommended that you decompress the package and read the instruction file to learn about the installation requirements and modify the compilation configuration when necessary. The source code of some software packages can be compiled and installed using make
If this function is not provided, the software must be manually deleted. Because the software may install files in multiple directories of the system, it is difficult to delete the files,
You should configure the software before compilation, and specify the software to be installed to the target path:./configure -- prefix = directory name, so that you can use "RM-RF
"Software Directory Name" command to clean and thoroughly Uninstall. Compared with other installation methods, it is the most difficult to compile and install by yourself. It is suitable for users who already have some experience in Linux. It is generally not recommended for beginners.
.
The installation and uninstallation of Linux software have already been discussed in many cases, but may I still ask whether a tar.gz/bz2 package is a binary file package or a source code package? If
Once you use a compression tool, you will understand that a package may not be software, it may also be a lot of pictures backed up, or it may be a common package together, the best way to identify what it is to view the text in the package.
File List, use the command tar ztvf * .tar.gz/tar ytvf
*. Bz2 or graphical Ark compression file management tools can be used in X-window. Files in the source code package often contain various source code files. header files *. h and C source code files
Parts *. c, C ++ code source file *. CC /*. CPP and so on; while files in the binary package will have executable files (the same name as the software is often the main execution file), which indicates that the path contains
Bin directory (only a few exceptions ). It's so easy. You can't try it now!
Article 2:
How to install linux software
It is easy to install software in windows. You only need to double-click the setup or install icon and follow the wizard step by step.
The installation of software in Linux is not as easy as that in windows. Sometimes you find the source code of the software that has not been compiled, which is even more troublesome. Here we will introduce how to install the software in Linux.
Parts!
In Linux, software is generally compressed. The main formats include rpm1_tarw.tar.gz and tgz. So the first thing after obtaining the software is decompression.
1. It is easier to install software in RPM format in XWindow. You just need to right-click the mouse over the file and there will be three special items in the pop-up menu (only by right-clicking the RPM
File) Show INFO, upgrade, and install. The meaning of these three items is very clear and I will not say much. Rpm format, followed
Tar.gz, tgz, etc. If you double-click these files in XWindow, the files will be automatically decompressed, rather than using the install option like rpm.
The Install file will only appear after you decompress it. But here I want to talk about it first. Before you double-click Install, it is recommended that you have a good look at README, because you want to install these software
No compilation is available, so it is better to take a look.
Ii. After completing the installation and decompression in XWindow, I will talk about how to decompress and install it in text mode and compile the source code. First, let's talk about rpm. After logging in as root (using other identities)
You can log on, but some software cannot be installed. It is not difficult to type rpm-I file + extension (of course, rpm) You want to decompress, here I want to say "-I" means
Install. If you want to uninstall or execute other commands, run rpm.
-- Help: Check the prompt from the computer. To take care of those who are not very good at E, I will write a few common parameters here:-E: uninstall the relevant applications, -U (uppercase): Upgrade the software package,
-Pql: Used to list RPM software package information.-QF: used to find the software package of the specified file. For software in other formats, you can use gunzip, Gzip, tar, and
Unzip and other commands, and then run install. After unpacking, you will get some files, and then go to the extracted file directory and use "ls-F
-Color command to check the obtained file. There are two common cases: the first is that the file is a compiled program (no need to compile it again) the above command to view the file will be highlighted "*"
Display; the second type is the source code that needs to be compiled by yourself. If we get the source code, we need to compile it ourselves to get the executable program. Will it scare you to compile the source code when you hear it?
When I wear it, I just need to add a few words. It is difficult for beginners to think about a good operating system. When you learn to show your hand before mm, think about it ......, Read carefully before compiling.
Readme document. The old birds don't need it anymore. Run it after you have read it.
./Configure
Make
Make install (this command can be executed only as root). After compilation, the executable program of the software is obtained in the current directory or SRC subdirectory.
After the introduction, do you think it is easier to install RPM software, by compiling the software source code, you can lay a foundation for later kernel compilation. (Shanghai Leslie Cheung)
Article 3:
Easily install and Uninstall Linux software
The installation and uninstallation of Linux software has been a problem for many new users. In Windows, we can use the software-provided installer or "Add/delete programs" in the control panel
. Similarly, in Linux, there is a powerful software installation and uninstallation tool named rpm. It can be used to establish, install, query, update, and uninstall software. This tool is used in the command line
. Enter rpm at the shell prompt to obtain help information for this command.
Software Installation
The installation of software in Linux is mainly in two different forms. The first installation file is xxx.tar.gz, and the other is named XXX. i386.rpm. Most of the software released in the first method is sent in the source code form, and the second method is directly sent in binary form.
For the first method, the installation method is as follows:
1. First, copy the installation file to your directory. For example, if you log on as root, copy the software to/root.
# Cp xxx.tar.gz/root
2. Because the file is compressed and packaged, decompress it. Command:
# Tar xvzf filename.tar.gz
3. After executing this command, extract the installation file to the current directory by path. Run the LS command to view the decompressed file. Generally, the files generated after decompression contain the "Install" file. This file is a plain text file that describes the installation method of the software package in detail.
4. Execute the decompressed command to generate an executable script program named configure. It is used to check whether the system has the library required for compilation, and whether the library version meets the compilation requirements and other system information required for installation. Prepare for subsequent compilation. Command: #./configure.
5. After the check is passed, the MAKEFILE file for compilation will be generated. Now you can start compiling. The compilation process varies depending on the software scale and computer performance. Command: # Make.
6. After compilation, enter the following command to start installation:
# Make install
7. After installation is complete, clear the temporary files generated during compilation and files generated during configuration. Run the following command:
# Make clean
# Make distclean
So far, the software installation is complete.
For the second method, the installation method is much simpler.
Copy the installation file to your directory in the same way as the first method. Then use RPM to install the file. The command is as follows:
# Rpm-I filename. i386.rpm
Rpm automatically unpacks the installation file and installs the software in the default directory. And register the software installation information to the RPM database. The role of parameter I is to enable RPM to enter the installation mode.
Uninstall Software
1. The software is mainly detached using rpm. To uninstall a software package, you must first know the name registered in the system. Type the following command:
# Rpm-Q-
You can query all the software packages installed in the current system.
2. Determine the name of the software to be detached, and you can start to uninstall the software. Run the following command to uninstall the software:
# Rpm-E [package name]
The function of parameter E is to enable RPM to enter the uninstall mode. Uninstall the software package named [package name. Each software package in the system depends on each other. If the object cannot be detached because of dependency, the RPM prompts and stops uninstalling the object. You can run the following command to ignore the dependency and directly start detaching:
# Rpm-E [package name]-nodeps
Uninstalling dependencies may make other software unavailable in the system.
Supplement:
If the binary software ends with. Bin, you can install it using the following method (take the so-6_0-beta-bin-linux-zh-Tw1.bin as an example ):
Run the simulated terminal in the folder where the so-6_0-beta-bin-linux-zh-Tw1.bin is located
Input:
/So-6_0-beta-bin-linux-zh-Tw1.bin
Press enter!
Of course, you can also enter:
./So and then use the [Tab] key to complete
(./Indicates the current directory. If the terminal is not opened in the directory where the software is located, enter the corresponding path before the software name .)
If you are on the graphic interface, you can also click (or double-click, depending on the specific mouse settings) to install it!