Fedora/Redhat install and update the software package online yum

Source: Internet
Author: User

Fedora/Redhat online installation and update package yum this article describes how to install and update the software online using the Fedora core 4.0 software package management tool yum, we will introduce it in another article. 1. Use of yum. Some new Linux beginners may ask why you don't need to upgrade the system's built-in graphical tool up2date, but use yum. As a matter of fact, we can see from the very beginning that up2date is incredibly slow and often gets lost in response, resulting in the situation where machines are suspended. Therefore, we should try yum. In addition, freshrpms.net may update the source faster than the official site, and there is no reason not to use yum; 1. First, we need to download the yum version corresponding to our system at the following address; http://ayo.freshrpms.net/For example, I use Fedora core 4.0 to download the following package installation; [root @ localhost beinan] # rpm-ivh freshrpms-release-1.1-1.fc.noarch.rpmwarning: freshrpms-release-1.1-1.fc.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e42d547bPreparing... ######################################## ### [100%] 1: freshrpms-release ## ######################################## # [100%] 2. Software Installation example; for example, I want to install a bmp-mp3 that can listen to mp3, just enter the following command line, the system will work on its own; [root @ localhost beinan] # yum install bmp-mp3 content panorama is as follows: [root @ localhost beinan] # yum install bmp-mp3Setting up Install ProcessSetting up repositoriesupdates-released 100% |================ ====| 951 B 00: 00 extras 100% | =============================| 1.1 kB 00: 00 base 100% | =============================| 1.1 kB 00: 00 freshrpms 100% |===============================| 951 B 00: 00 Reading repository metadata in from local filesprimary.xml.gz 100% |=================| 42 kB 00: 03 freshrpms: ######################################## ######### 122/122 Added 122 new packages, deleted 0 old in 0.72 secondsParsing package install argumentsResolving Dependencies --> Populating transaction set with selected packa Ges. please wait. ---> Downloading header for bmp-mp3 to pack into transaction set.bmp-mp3-0.9.7-1.2.fc4.i38 100% | ==================== | 2.9 kB ---> Package bmp-mp3.i386 0: 0. 9.7-1.2.fc4 set to be updated --> Running transaction check --> Processing Dependency: libid3-3.8.so.3 for package: bmp-mp3 --> Processing Dependency: libbeep. so.2 for package: bmp-mp3 --> Processing Dependency: bmp> = 0. 9.7 for package: bmp-mp3 --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. please wait. ---> Downloading header for id3lib to pack into transaction set. id3lib-3.8.3-11.fc4.i386. 100% | =================================| 38 kB ---> Package id3lib. i386 0: 3. 8.3-11. fc4 set to be updated ---> Downloading header for bmp to pack into transaction set.bmp -0.9.7-10. fc4.i386. rpm 100% | =================================| 14 kB ---> Package bmp. i386 0: 0. 9.7-10. fc4 set to be updated --> Running transaction checkDependencies Resolved ====================== ========================================================== ======= Package Arch Version Repository Size ========================== ========================================================== =========== Installing: bmp-mp3 i386 0.9.7-1.2.fc4 Freshrpms 95 kInstalling for dependencies: bmp i386 0.9.7-10. fc4 extras 912 k id3lib i386 3.8.3-11. fc4 extras 752 kTransaction Summary ==================================== ========================================================== = Install 3 Package (s) update 0 Package (s) Remove 0 Package (s) Total download size: 1.7 MIs this OK [y/N]: yDownloading Packages: (1/3 ): id3lib-3.8.3-11.fc 100% | =================================| 752 k B (2/3 ): bmp-0.9.7-10.fc4. I 100% | ===============================| 912 kB (3/3): bmp-mp3-0.9.7-1.2. 100% | =====================================| 95 kB 00: 05 Running Transaction TestFinished Transaction TestTransaction Test SucceededRunning Transaction Installing: bmp ######################## [1/3] Installing: id3lib ####################### [2/3] Installing: bmp-mp3 ######################## [3/3] Install Ed: bmp-mp3.i386. 9.7-1.2.fc4Dependency Installed: bmp. i386. 9.7-10. fc4 id3lib. i386. 8.3-11. fc4Complete! Note: yum advantages: Software Package dependencies are resolved by themselves, such as the above, we can see that originally we only install bmp-mp3, the result of yum installation also installed id3lib; bmp 2. A small usage of yum; 1. query a software package; we may not be able to start with thousands of software programs, and sometimes do not know the file name. query is required at this time; we can use the yum list to list the packages on the yum upgrade source. Then we can check the following combinations of info; [root @ localhost beinan] # yum list | more: add an MPS queue. | click more to display all packages on pages. Click the Space key to view the next page. The displayed Software List contains the software name, version, installation, and so on. Take a closer look. Just get familiar with it. There is no difficulty. [Root @ localhost beinan] # yum list | moreSetting up repositoriesReading repository metadata in from local filesInstalled Packages4Suite. i386 1.0-8. b1 installedCanna. i386 3.7p3-13 installedCanna-devel.i386 3.7p3-13 installed if you want to know the details of the software, you may have to use the info parameter. For example: Usage: [root @ localhost beinan] # yum info software name, for example: [root @ localhost beinan] # yum info bmp-mp3Setting up repositoriesupdates-released 100% |================== = | 951 B 00: 00 extras 100% | =============================| 1.1 kB 00: 00 base 100% | ===============================| 1.1 kB 00: 00 freshrpms 100% | =============================| 951 B 00: 00 Reading repository metadata in from local filesInstalled PackagesName: Bmp-mp3Arch: i1_version: 0.9.7Release: 1.2.fc4Size: 234 kRepo: freshrpmsSummary: MP3 playback plugin for the Beep Media PlayerDescription: This package contains an MP3 playback plugin for BMP (Beep Media Player ), a media player that uses a skinned user interface based on Winamp 2.x skins, and is based on ("forked off") XMMS. in the above example, if the Repo: freshrpms is like this, it indicates that your system has not installed this software. If the display is: Repo: installed, Indicates that it has been installed. To query a software package, you can also add the grep parameter. For example, if we want to query whether a new kernel version is available on the upgrade source, we can use the following command to query it; of course, you can also use [root @ localhost beinan] # yum search kernel | more, that is, the parameters provided by yum -- help; [root @ localhost beinan] # yum list | grep kernel: [root @ localhost beinan] # yum list | grep kernelGFS-kernel.i686 2.6.11.8-20050601.1526 installedcman-kernel.i686 2.6.11.5-20050601.1526 installeddlm-kernel.i686 2.6.11.5-20050601.1526 installedgnbd-ke Rnel. i686 2.6.11.2-20050420.1331 installedkernel. i686 2.6.11-1.1369 _ FC4 installedkernel-devel.i686 2.6.11-1.1369 _ FC4 installedkernel-doc.noarch 2.6.11-1.1369 _ FC4 installedGFS-kernel.i586 2.6.11.8-20050601.1526 baseGFS-kernel-debuginfo.i686 2.6.11.8-20050601.1526 updates-releasedGFS-kernel-debuginfo.i586 2.6.11.8-20050601.1526 updates-releasedGFS-kernel-smp.i686 2.6.11.8-20050601.1526 baseGFS-kerne L-xen0.i686 2.6.11.8-20050601.1526 baseGFS-kernel-xenU.i686 2.6.11.8-20050601.1526 basecman-kernel.i586 2.6.11.5-20050601.1526 updates-releasedcman-kernel.i686 2.6.11.5-20050601.1526 updates-releasedcman-kernel-debuginfo.i586 2.6.11.5-20050601.1526 updates-releasedcman-kernel-debuginfo.i686 2.6.11.5-20050601.1526 updates-releasedcman-kernel-smp.i686 2.6.11.5-20050601.1526 updates-releasedcman-kern El-xen0.i686 2.6.11.5-20050601.1526 updates-releasedcman-kernel-xenU.i686 2.6.11.5-20050601.1526 updates-releaseddlm-kernel.i686 2.6.11.5-20050601.1526 updates-releaseddlm-kernel.i586 2.6.11.5-20050601.1526 updates-releaseddlm-kernel-debuginfo.i586 2.6.11.5-20050601.1526 updates-releaseddlm-kernel-debuginfo.i686 2.6.11.5-20050601.1526 updates-releaseddlm-kernel-smp.i686 2.6.11.5-20050601.1526 upda Tes-releaseddlm-kernel-xen0.i686 2.6.11.5-20050601.1526 updates-releaseddlm-kernel-xenU.i686 2.6.11.5-20050601.1526 updates-releasedgnbd-kernel.i686 2.6.11.2-20050420.1331 updates-releasedgnbd-kernel.i586 2.6.11.2-20050420.1331 updates-releasedgnbd-kernel-debuginfo.i586 2.6.11.2-20050420.1331 updates-releasedgnbd-kernel-debuginfo.i686 2.6.11.2-20050420.1331 updates-releasedgnbd-kernel-smp.i686 2.6. 11.2-20050420.1331 updates-releasedgnbd-kernel-xen0.i686 2.6.11.2-20050420.1331 updates-releasedgnbd-kernel-xenU.i686 2.6.11.2-20050420.1331 updates-releasedkernel.i586 2.6.12-1.1398 _ FC4 updates-releasedkernel.i686 2.6.12-1.1398 _ FC4 updates-releasedkernel-debuginfo.i686 2.6.12-1.1398 _ FC4 updates-releasedkernel-debuginfo.i586 2.6.12-1.1398 _ FC4 updates-releasedkernel-devel.i586 2.6.12-1.1398 _ FC4 up Dates-releasedkernel-devel.i686 2.6.12-1.1398 _ FC4 updates-releasedkernel-doc.noarch 2.6.12-1.1398 _ FC4 updates-releasedkernel-smp.i686 2.6.12-1.1398 _ FC4 updates-releasedkernel-smp-devel.i686 2.6.12-1.1398 _ FC4 updates-releasedkernel-xen0.i686 2.6.12-1.1398 _ FC4 updates-releasedkernel-xen0-devel.i686 2.6.12-1.1398 _ FC4 updates-releasedkernel-xenU.i686 2.6.12-1.1398 _ FC4 updates-releasedkernel-xenU-devel. I686 2.6.12-1.1398 _ FC4 updates-released does show a lot of kernel-related information. installed indicates that our system has been installed. Let's look at the previous column, take a look at the name to guess it. For example, doc must be related to the kernel documentation; smp is the multi-processor kernel; others I don't understand, for more information, see info. For example, if we use a single-processor X86 machine, check whether a new kernel is available. So let's try this. Check whether a new kernel can be upgraded. [root @ localhost beinan] # yum info kernel. i686 [root @ localhost beinan] # yum info kernel. i686Setting up repositoriesupdates-released 100% |=======================| 951 B 00: 00 extras 100% | =============================| 1.1 kB 00: 00 base 100% | ===============================| 1.1 kB 00: 00 freshrpms 100% | =============================| 951 B 00: 00 Reading repository metadata in from local filesInstall Ed PackagesName: kernelArch: i686Version: 2.6.11Release: 1.1369 _ FC4Size: 37 MRepo: installedSummary: Linux kernel (core of the Linux operating system ). Description: The kernel package includes the Linux kernel (vmlinuz) and the core of the Red Hat Linux operating system. The basic functions of the kernel processing operating system include memory allocation, processing allocation, input and output of devices, and so on. Available PackagesName: kernelArch: i686Version: 2.6.12Release: 1.1398 _ FC4Size: 14 MRepo: updates-releasedSummary: The Linux kernel (the core of the Linux operating system) Description: the kernel package contains the Linux kernel (vmlinuz), the core of anyLinux operating system. the kernel handles the basic functionsof the operating system: memory allocation, process allocation, deviceinput and Output, etc. through the above information, we can see that 2.6.11 has been installed, because the Repo: installed has been displayed, and there is another Version: 2.6.12, which tells us that it is Repo: updates-released, it seems that this is an upgrade. So whether or not to upgrade depends on us. [Root @ localhost beinan] # The yum update kernel upgrade panorama is as follows: [root @ localhost beinan] # yum update kernelSetting up Upgrade ProcessSetting up repositoriesupdates-released 100% |============== ====| 951 B 00: 00 extras 100% | =============================| 1.1 kB 00: 00 base 100% | ===============================| 1.1 kB 00: 00 freshrpms 100% | =============================| 951 B 00: 00 Reading repository metadata in from loca L filesResolving Dependencies --> Populating transaction set with selected packages. please wait. ---> Downloading header for kernel to pack into transaction set. kernel-2.6.12-1.1398_FC4. 100% | ===================================| 174 kB ---> Package kernel. i686 0: 2. 6.12-1.1398 _ FC4 set to be installed --> Running transaction checkDependencies Resolved ================== ==================================== ================================= Package Arch Version Repository Size ================== ========================================================== ======================================= Installing: kernel i686 2.6.12-1.1398 _ FC4 updates-released 14 MTransaction Summary ================== ========================================================== =========== Install 1 Package (s) update 0 Package (s) Remove 0 Package (s) Total download size: 14 MIs this OK [y/N]: Is it upgraded? Level, you only need to input y or N after Is this OK [y/N]: line; y Is yes, that Is, nod to agree; N Is the meaning of shaking head No. For software package query, for example, [root @ localhost beinan] # yum list available lists all packages on the upgrade source; [root @ localhost beinan] # yum list updates lists update packages on all upgrade sources; [root @ localhost beinan] # yum list installed lists installed packages; yum commands support wildcards. For example, [root @ localhost beinan] # yum list mp * | moreSetting up repositoriesReading repository metadata in from local filesInstalled Packagesmpage. i386 2.5.4-5 installedAvailable Packagesmpc. i386 0.11.2-3 extra Smpeg2dec. i386 0.4.0-5b. 2. fc4 freshrpmsmpeg2dec-devel.i386 0.4.0-5b. 2. fc4 freshrpmsmpg321.i386 0.2.10-6.2.fc4 freshrpmsmplayer. i386 1.0-0.16.pre7.2.fc4 freshrpmsmplayer-docs.i386 1.0-0.16.pre7.2.fc4 freshrpmsmplayer-fonts.noarch 1.1-3.fc freshrpmsmplayer-skins.noarch 1.7-1.fc freshrpms [root @ localhost beinan] #2. install and upgrade the software package. install and upgrade the install and update parameters, for example, [root @ localhost beinan] # yum update firefox In this way, we can upgrade firefox. [Root @ localhost beinan] # yum update firefoxSetting up Update ProcessSetting up repositoriesupdates-released 100% |============== ====| 951 B 00: 00 extras 100% | =============================| 1.1 kB 00: 00 base 100% | ===============================| 1.1 kB 00: 03 freshrpms 100% | ===============================| 951 B 00: 02 Reading repository metadata in from local filesResolving Dependencies --> Populating transacti On set with selected packages. please wait. ---> Package firefox. i386 0: 1. 0.6-1.1.fc4 set to be updated --> Running transaction checkDependencies Resolved ==================== ========================================================== ========= Package Arch Version Repository Size ======================== ========================================================== ============= Updating: firefox i386 1.0.6-1.1.fc4 updates-released 18 MTransaction Summary ========================================== ============================================================ Install 0 Package (s) update 1 Package (s) Remove 0 Package (s) Total download size: 18 MIs this OK [y/N]: If no parameter is added, what will update be ?? [Root @ localhost beinan] # yum update try to run it? It will take a long time to fully update the system. We need to perform y and N. 3. remove the software package to use the remove parameter; for example; [root @ localhost beinan] # yum remove bmp-mp3 content panorama is as follows: [root @ localhost beinan] # yum remove bmp-mp3Setting up Remove ProcessResolving Dependencies --> Populating transaction set with selected packages. please wait. ---> Package bmp-mp3.i386 0: 0. 9.7-1.2.fc4 set to be erased --> Running transaction checkDependencies Resolved ==================== ====================================== =================== Package Arch Version Repository Size ====================== ========================================================== ============================ Removing: bmp-mp3 i386 0.9.7-1.2.fc4 installed 234 kTransaction Summary ========================== ========================================================== ====== Install 0 Package (s) update 0 Package (s) Remove 1 Package (s) Total download size: 0Is this OK [y/N]: Press y to Remove; 3. yum graphics tool; see: Introduction to software online upgrade and update yum graphics tools 4. yum help; there are many forums, and interested brothers can find them by themselves; but do not forget to help themselves; oh .... [Root @ localhost beinan] # yum -- help Usage: yum [options] <update | install | info | remove | list | clean | provides | search | check-update | groupinstall | groupupdate | grouplist | groupinfo | groupremove | makecache | localinstall | shell> Options: -c [config file]-specify the config file to use-e [error level]-set the error logging level-d [debug level]-set the debugging level-y-answer yes to all questions-R [time in minutes]-set the max amount of time to randomly run in-C run from cache only-do not update the cache -- installroot = [path] -set the install root (default '/') -- version-output the version of yum -- exclude = package to exclude -- disablerepo = repository id to disable (overrides config file) -- enablerepo = repository id to enable (overrides config file) -h, -- help-this screen has more help; [root @ localhost beinan] # man yum

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.