Intermittent learning of some of the use of CentOS, found that a period of time do not operate, will forget the concepts or methods of operation, so summarize here.
First, the problem description
First, take a note of the conceptual thing I most often forget:
What is yum, what is rpm, and what is the difference between the two looks similar?
What is the difference between a source installation package and a binary installation package?
Second, the elaboration
First of all, the Linux installation package can often see the suffix name, but in fact, the suffix of the Linux file is only for the user to see, Linux itself on the file has a suffix name, what suffix is not concerned about.
1. What does the rpm suffix name represent?
Different software may be due to the operating system, the underlying hardware differences in the performance of different machines may be different, often we will use the source package (usually the. tar.gz suffix for the source package) to compile the installation, to produce more suitable for the hardware and operating system running code. However, many times we only need to use the compiled program files, put them on the local computer, it can run. And RPM is a compiled program installation package.
Conclusion: RPM is a compiled program installation package that can be installed via the RPM command. SOURCE Package Required
2. Then discuss, what is Yum?
Setup, sometimes there are some dependencies, such as a program run prerequisite is that the B program has been installed, and B program installation prerequisite is the C program is already running. So, the problem, if we only want to use a program, and want to only install a program can be used directly, then definitely need a way to install B and C before a installation, but this process does not require manual intervention. So, with a management program called Yum, at the far end, on the Redhat version of Linux, you can try the Yum command to install the appropriate software. The command downloads the required installers from the remote Yum source and installs the dependent programs locally, and the Yum command uninstalls the appropriate programs that the software relies on when uninstalling.
Conclusion: Yum is an automatic installer command and a short name for a remote yum source.
More operations can be found in: http://www.92csz.com/study/linux/11.htm
CENTOS--RPM and Yum