NO, you don't give the *file name*, you give the base package name, in this case 'flash-plugin'. The repo metadata supplies the proper version+release (10.0.22.87-release) and arch (i386 or posibly x86_64). The .rpm gets added somewhere in the bowels of yum, as needed to fetch the proper file (.hdr is also append when the header is fetched).
You have to understand that there is an important difference between package *names* and the names of the package *files*. Generally, the RPM files in a repository are built up from pieces: a base package name, its version & release string, its arch, and a file extension (.rpm for actual packages, .hdr for headers, which contain just the information needed to process dependencies). You only ever give yum the base package name [sometimes qualified with the arch] (except in the *special* case of 'install-local'). You also only give the base package name (*possibly* qualified with a version+release and/or arch) to rpm's query and erase (-q & -e) functions. You do give the actual file name for the install and update functions (-i and -U) of rpm.
This can seem confusing to novice users of RPM (less so with yum, since there is a greater level of overal consistency). Think of it like this: yum always deals in packages by *name* at the UI level (yum takes care of the mapping between packages *names*and the package *files*). In the case of RPM, you install or update a package with a package file. Once installed, the package *file* is no longer of use to RPM, since what is installed is the *package* not the package file itself.
ah OK thanks so much!
OK I just ran it again, still can't get it right, I'm still doing something wrong...
[root@localhost tmp]# yum -y install flash-plugin Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * adobe-linux-i386: linuxdownload.adobe.com * base: centos.omnispring.com * updates: ftp.lug.udel.edu * addons: mirrors.unbornmedia.com * extras: updates.interworx.info Setting up Install Process Parsing package install arguments Package flash-plugin - 10.0.22.87-release.i386 is already installed. Nothing to do [root@localhost tmp]# [root@localhost tmp]# yum -y install flash_player Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * adobe-linux-i386: linuxdownload.adobe.com * base: centos.omnispring.com * updates: ftp.lug.udel.edu * addons: mirrors.unbornmedia.com * extras: updates.interworx.info Setting up Install Process Parsing package install arguments No package flash_player available. Nothing to do [root@localhost tmp]# yum -y install flash-player Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * adobe-linux-i386: linuxdownload.adobe.com * base: centos.omnispring.com * updates: ftp.lug.udel.edu * addons: mirrors.gigenet.com * extras: updates.interworx.info Setting up Install Process Parsing package install arguments No package flash-player available. Nothing to do [root@localhost tmp]# yum -y install flash_plugin Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * adobe-linux-i386: linuxdownload.adobe.com * base: centos.omnispring.com * updates: ftp.lug.udel.edu * addons: mirrors.unbornmedia.com * extras: updates.interworx.info Setting up Install Process Parsing package install arguments No package flash_plugin available. Nothing to do
[root@localhost tmp]# yum install curl.i386 Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * adobe-linux-i386: linuxdownload.adobe.com * base: centos.omnispring.com * updates: ftp.lug.udel.edu * addons: mirrors.unbornmedia.com * extras: updates.interworx.info Setting up Install Process Parsing package install arguments Resolving Dependencies --> Running transaction check ---> Package curl.i386 0:7.15.5-2.1.el5_3.4 set to be updated --> Finished Dependency Resolution
Dependencies Resolved
============================================================================= Package Arch Version Repository Size ============================================================================= Installing: curl i386 7.15.5-2.1.el5_3.4 updates 232 k
Transaction Summary ============================================================================= Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s)
Total download size: 232 k Is this ok [y/N]: y Downloading Packages: (1/1): curl-7.15.5-2.1.el 100% |=========================| 232 kB 00:00 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: curl ######################### [1/1]
Installed: curl.i386 0:7.15.5-2.1.el5_3.4 Complete! [root@localhost tmp]# yum -y install flash-plugin-10.0.22.87-release.i386.rpm Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * adobe-linux-i386: linuxdownload.adobe.com * base: centos.omnispring.com * updates: ftp.lug.udel.edu * addons: mirrors.gigenet.com * extras: updates.interworx.info Setting up Install Process Parsing package install arguments No package flash-plugin-10.0.22.87-release.i386.rpm available. Nothing to do [root@localhost tmp]# [root@localhost tmp]# ls -la total 128 drwxrwxrwt 11 root root 4096 Apr 4 14:38 . drwxr-xr-x 24 root root 4096 Apr 4 12:40 .. -rwx------ 1 root root 4368 Apr 4 13:00 adobe-release-i386-1.0-1.noarch-1.rpm drwx------ 2 user user 4096 Mar 30 07:30 .exchange-user drwxrwxrwt 2 root root 4096 Apr 4 12:40 .font-unix drwx------ 3 user user 4096 Apr 4 12:42 gconfd-user -rw------- 1 user user 66 Apr 1 04:56 .gdmINUQRU srw-rw-rw- 1 root root 0 Apr 4 12:40 .gdm_socket -rw------- 1 user user 66 Apr 4 12:42 .gdmV125RU drwxrwxrwt 2 root root 4096 Apr 4 12:42 .ICE-unix drwx------ 2 user user 4096 Apr 4 12:42 kde-user drwx------ 3 user user 4096 Apr 4 12:42 ksocket-user drwx------ 2 user user 4096 Apr 4 15:01 orbit-user drwx------ 2 user user 4096 Apr 4 12:42 ssh-VPclej3237 -r--r--r-- 1 root root 11 Apr 4 12:40 .X0-lock drwxrwxrwt 2 root root 4096 Apr 4 12:40 .X11-unix [root@localhost tmp]# yum -y install adobe-release-i386-1.0-1.noarch-1.rpm Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * adobe-linux-i386: linuxdownload.adobe.com * base: centos.omnispring.com * updates: ftp.lug.udel.edu * addons: mirrors.unbornmedia.com * extras: updates.interworx.info Setting up Install Process Parsing package install arguments Examining adobe-release-i386-1.0-1.noarch-1.rpm: adobe-release-i386 - 1.0-1.noarch adobe-release-i386-1.0-1.noarch-1.rpm: does not update installed package. Nothing to do
_________________________________________________________________ Rediscover Hotmail®: Get quick friend updates right in your inbox. http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Upd...