1. Installation commands for the software:
The first type: A binary file with the software name. RPM As the end of the installation of such a file
RPM-IVH software name. RPM I is install V is check h progress
Uninstall software is rpm-e software registration, do not need to play the. rpm format, just need the package name to do
Uninstalling the software requires first knowing the name of the software to be uninstalled, and using RPM-QA to query out all installed package names.
Some packages have to be uninstalled depending on the other packages, which is not allowed to be uninstalled, using RPM-E--nodeps PackageName
Brute force offload, but it is possible that other packages will not work, because it may also depend on the dependencies of this package.
The second type: Packages installed in source code: packages ending with src.rpm:
Compile first: Rpm-rebuild xx.scr.rpm will then generate a xx.rpm under CentOS/usr/src and then you can install it with RPM-IVH.
The Third Kind: the common tar.gz. bz2 end of the binary package,: GZ is compressed with gzip, BZ is compressed with bzip, so the need for decompression software is not the same.
Last said TAR-ZXVF xx.gz TAR-JXVF xx.bz2
Z is called gzip decompression, J is called bZIP Decompression, X is decompression, V is check f is the specified file name. Such files are almost universal format.
If you want to uninstall, I feel the need to manually 1.1-point search Uninstall.
The fourth type: tar.gz xx.bz2 end of the source code package: first with TAR-ZXVF xx.gz decompression, unzip the backward directory:
./configure configuration make compile make install all-in-all three-step. Through my installation of these several times vncserver, if it is not installed through Yum software, you need to observe the extracted file directory: see if there is no readme,install such documentation, see the installation of command parameter format, or need those dependent software. Very important, under the CentOS I think the first observation of multi-use eyes, less hands, for me such a novice. and the suffix is. bin of the execution file, the installation of the time to look at the file permissions, no execution permissions need to first give permissions, and then install. Use the Junk Cleanup command after installation: Make clean or make Distclean cleanup temporary files.
Note the problem:
Some software instructions marked make uninstall uninstall, no words only manually delete, so as far as possible to see instructions to install the installation of the name of the directory directly fill in, after deletion or delete, directly with RM-RF can delete the directory.
If you need to compile the installed software, at compile time, directly with the parameters of the compilation:/configure--prefix = directory name, so installation is installed to this directory, convenient, do not need to compile the installation to see, when the installation directory can be customized, it is important, I installed vncserver are very messy, can not be deleted.
2. User management, Group
1. Username: uid, each user belongs to a group, user group: GID a user can join multiple groups.
Useradd-g-d-s-p password username01 add a user named Username01 belongs to the group,-D to create the directory,-s run the shell.
Usermod User Name change the username home directory login shell.
passwd User name Modify user password
Userdel-r User name-R removes files from the user directory.
Note: 1. Before deleting the user, see if the user is still online, if there is a process running, there is no way to delete it, view the process Ps-aux |gerp "My user name"
2. Also check to see if there are any execution plans to delete the user in the timer, and use the Crontab-u username-R to remove the timer task.
2./etc/group Group files,
Groupadd Group name Groupmod-g 102 GROUP01 Change the group GROUP01 number to group 102th.
Groupdel group name, note: If there are users within this group are online, cannot be deleted, close to delete group name
centos6.5 Software Installation, user management, etc.