what is yum?
yum, also called Yellow dog Updater Modified, is a Linux utility which is use to install RPM packages/Binary Files (.rpm files). You can use yum with the following options
- install
- update
- check-update
- upgrade
- remove
- list
- provides
- search
- info
- clean
- shell
- resolvedep
- localinstall
- localupdate
- deplist
If you want to install any package using yum the syntax would be yum install packagename, if you want to install apache using yum try
[root@localhost ~]# yum install httpd Loading “installonlyn” plugin Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies –> Populating transaction set with selected packages. Please wait. —> Downloading header for httpd to pack into transaction set. httpd-2.2.6-1.fc6.i386.rp 100% |=========================| 54 kB 00:04 —> Package httpd.i386 0:2.2.6-1.fc6 set to be updated –> Running transaction check Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Updating: httpd i386 2.2.6-1.fc6 updates 1.0 M Transaction Summary ============================================================================= Install 0 Package(s) Update 1 Package(s) Remove 0 Package(s) Total download size: 1.0 M Is this ok [y/N]:y
Yum will try to install httpd and also will check and show you dependencies, in our case we httpd is already install so yum will auto update httpd as shown above.
In our case httpd (2.2.3-5) is already install
[root@localhost RPMS]# rpm -qa | grep httpd httpd-2.2.3-5 [root@localhost RPMS]#
so yum showed the new version as update 2.2.6-1.fc6

April 14th, 2008 00:19
[...] Write about computers « what is yum? [...]