A Must know
cat/etc/redhat-release//view Linux version
Uname-a//View the number of system bits
UltraISO//do mirror software
Mount-o Loop Mirroring mount point Mount the image
which command//view the absolute path of the command
\//Turn the signifier, make meaningful meaningless, make meaningless meaningful
""//turn meaning to normal character
mount
Mount device name mount point//Mount device
Mount-o Loop mirroring mount point//Mount Mirror
uninstall
Umount device name
Umount mount point
two. RPM Installation
Software name version number (major version number, minor version number, revision number) operating system platform (i386, i486,i586,i686) x86_64 Noarch (32-bit and 64-use)
RPM-IVH Package name//install software
Rpm-qa | grep software name//See if the software is installed
RPM-E software name//uninstall software
RPM-QL software name//view Software Installation path
RPM-QI Package name//Query Specify package details
Absolute path to the RPM-QF file//view file which software generated
RPM-E software name –nodeps//delete directly, do not check dependencies, –nodeps when uninstalling
RPM-IVH Package Name –force//force install, do not check dependencies, –force during installation
/usr/bin store Start command
ls | grep peal | grep DBI
Three Yum Source Configuration
cd/etc/yum.repos.d///configuration file location Rm-rf *vim/etc/yum.conf Change the following two parameters to 0vim any. Repo
[yum Name]//best name take rhel6-server
Name= any//description information
Baseurl=file:///misc/cd/server or file:///misc/cd/// Yum source Absolute Road
http://
ftp://
Enabled=0 or 1//open and close Yum Source, 1 is on, 0 is off
gpgcheck=0//Do not operate
Yum Clean all//cleanup Yum cache
Four Yum Installation
yum Search Software Name keywords//view software information
yum-y install software name/install software
yum-y Remove software name//remove software
Yum grouplist/ /query All software groups in the system
yum-y groupinstall Group name//install package group
five. Self-made Yum source
1.yum-y install createrepo
2.mkdir directory
3. Put the RPM package in the built directory
4.createrepo/directory name
Operation method
Yum-y Install CREATEREPOCP gedit-*/MKDIR/MYYUMCP gedit-*/myyumcreaterepo/myyum
Six SOURCE Installation
Yum-y Install gcc*//install compiler TAR-XJVF Package-C directory CD extract directory./configure–prefix= installation directory//Create a profile and specify the installation directory Makemake install./configure –prefix= installation directory && make && make install
Source Uninstall
Directories extracted before CD make uninstall or make clean or make Distclean
compression and decompression
File file name//view files of type tar cvf file.tar file1 file2 ....//Package tar xvf file.tar-c dir//Unpack tar czvf compressed file. tar.gz Compressed files//compression (for gzip) TA R XZVF compressed file. tar.gz-c dir//unzip (for gzip) tar cjvf compressed files. tar.bz2 compressed files//compression (for bzip2) tar xjvf compressed files. Tar.bz2-c dir/unzip (for bZIP 2) gzip file1 file2 file3 ..... Compress. Gzgunzip compressed package. GZ//Unzip bzip2 file1 file2 file3 ....//compression. BZ2BUNZIP2 compressed package. BZ2//decompression./rar a File.rar file//compression./unrar e File.ra R//Unzip
TAR-XVZF Compressed Package-C Extract directory
/HTTP
Yum-y Install rpm-build*
Rpmbuild–rebuild Bag
Cd/root/rpmbuild Red Hat 6
Cd/usr/src/redhat Red Hat 5
Big Data and cloud computing (Wang Minglong) instructor-linux-day03-Installation Management