Configure function: Is the source code installation software configuration of the environment used he based on your configuration options and your system to generate makefile files for make preparation
The most commonly used parameters:./configure--prefix Function:
Prefix is not specified, the executable file is placed by default in/usr/local/bin, the library file is placed by default in/usr/local/lib, and the configuration file is/usr/local/etc by default. Other resource files are placed in the/usr/local/share. You uninstall this program, either in the original make directory with the make uninstall (if the make file has specified uninstall), or in the above directory to manually delete the relevant files. Specify prefix, delete a folder directly is enough.
Installation of software
There are two different forms of software installation under Linux. The first installation file name is xxx.tar.gz; another installation file name is xxx.i386.rpm. Software distributed in the first way is mostly sent in the form of source code, and the second is sent directly in binary form.
For the first type, the installation method is as follows:
1. First, copy the installation files to your directory. For example, if you are logged on as root, copy the software to/root.
#cp Xxx.tar.gz/root
2. Because the file is compressed and packaged, it should be decompressed. The command is:
#tar Xvzf filename.tar.gz If it is filename.tar.bz2 format, it should be tar jxvf filename.tar.bz2 to extract
3. After executing the command, the installation file is extracted in the current directory by path. Use the LS command to see the uncompressed file. Usually in the resulting file after the decompression, there are "Install" files. This file is a plain text file, detailing how the package is installed.
4. Perform a decompression of the resulting executable script named configure. It is the system information required for installation to check whether the system has the necessary libraries to compile, and whether the version of the library meets the needs of the compilation. Prepare for the subsequent compilation work. Command is: #./configure
If you want to install the software to a specified directory, you should use #./configure--prefix=/your own directory, such as I want to install a mlterm into the/opt/mlterm directory, should be entered as follows
#./configure--prefix=/opt/mlterm
5. After the check is passed, the makefile file for compilation is generated. At this point, you are ready to start compiling. The process of compiling depends on the size of the software and the performance of the computer, and the time spent is different. The command is: #make.
6. After successful compilation, type the following command to start the installation:
#make Install
7. Installation completed, should clear the compilation process generated during the temporary files and configuration process generated files. Type the following command:
#make Clean
#make Distclean
At this point, the software installation is complete.
For the second, the method of installation is much simpler.
As in the first approach, copy the installation files to your directory. Then use RPM to install the file. The order is as follows:
#rpm-I. filename.i386.rpm
RPM will automatically unpack the installation files and install the software to the default directory. and register the software installation information into the RPM database. The function of the parameter i is to get the RPM into installation mode.
Uninstall of software
1. Software uninstall is mainly done using RPM. The uninstall software first needs to know the name that the package registers in the system. Type the command:
#rpm-Q-A
You can query all the packages that are installed in the current system.
2. Determine the name of the software to uninstall, you can start to actually uninstall the software. Type the command:
#rpm-E [package name]
You can uninstall the software. The function of the parameter e is to get the RPM into uninstall mode. Uninstall the package named [Package name]. There is a dependency between each package in the system. If you cannot uninstall because of dependencies, RPM prompts and stops uninstalling. You can use the following commands to ignore dependencies and start uninstalling directly:
#rpm-E [package name]-nodeps
Ignoring the uninstall of dependencies may cause some other software in the system to be unusable
If you want to know where the RPM package is installed.
should use #rpm-QL [package name]
3. How to uninstall the software installed with the source code package.
It is best to look at the readme and install; Generally speaking, but most software does not provide the source code package uninstall method; We can find the installation point of the software removed. It depends on where you installed it.
Like what:
If you are installing the software, specify a directory. This problem is not difficult;
such as using the source package to install Gaim
#./configure--prefix=/opt/gaim
#make
#make Install
If you install Mlterm
#./configure--prefix=/opt/mlterm
#make
#make Install
The software that installs the source package, all specifies installs in the/OPT directory, this does not know.
If deleted, delete the corresponding software directory;
Some software will perform make uninstall in the decompression installation directory, so that you uninstall the
apt-get Uninstall Small note
After sudo apt-get install xxxx installs software, always cannot uninstall clean, here take Apache as an example, provide method:
First sudo apt-get remove apache2
again sudo apt-get Autoremove
recently wrote Python under Ubuntu, need to look at the Python documentation, I've been looking for a lot of information about the CHM under Ubuntu, and finalize the installation Kchmviewer-nokde, When the installation kchmviewer-nokde conflict, and then want to delete some software to find some information, so record here. &NBSP
When I installed the KCHMVIEWER-NOKDE, I used the new one (the name is very original, "the new immediately got it") to install. &NBSP
There is some discussion about installing software on the Web, and I'll just record that the simplest thing is to use a new stand. I know the command line on the apt-get, in fact, there is a better aptitude, the use of the way and apt-get similar. &NBSP
When installed:
sudo aptitude install kchmviewer-nokde
Then if you want to delete:
sudo Aptitude remove Kchmviewer-nokde is OK. &NBSP
and Apt-get Advantages: You can automatically delete the dependent packages, and apt-get actually have the ability to delete, but the deletion is not clean, and it is not so convenient to delete. The convenience of an order is embodied here. Disadvantages of
and apt-get: Software that is removed with sudo aptitude remove must be installed with sudo aptitude instal, which means they are pairs of
Add a little to use: first, starting from the command line Kchmviewer Two is to let the CHM file automatically associated, this in the CHM file right click on it. The name chosen is kchmviewer. In fact, this command can be known under &NBSP
/usr/bin, and you can see a lot of similar commands. With LS may be too much inconvenient to see, you can use the redirect ls > ~/log.txt of course you can use other shells such as tail or more