Databases Reference
In-Depth Information
If you have a relatively recent version of Red Hat or Fedora, you can also use the yum
(short for Yellowdog Updater Modified) program to automatically download and in-
stall the necessary packages from the Internet. This is very convenient because you
don't have to spend time digging up your installation CDs. More importantly, the latest
version of a package generally has patches for known bugs and security vulnerabilities.
If you've never used yum before, you need to configure it first. First, type su - to log in
as the system root user, and then update your /etc/yum.conf configuration file by
typing:
# wget http://www.fedorafaq.org/samples/yum.conf
# /bin/mv /etc/yum.conf /etc/yum.conf.bak
# /bin/mv yum.conf /etc
Now, update the yum indexes that list packages and the locations that they can be
downloaded from:
# rpm --upgrade --verbose --hash http://www.fedorafaq.org/yum
Retrieving http://www.fedorafaq.org/yum
Preparing... ########################################### [100%]
1:yum-fedorafaq ########################################### [100%]
Once you've configured yum , you can download and install all the programs you need
by simply specifying them from the command line:
# yum update mysql mysql-server httpd php php-mysql
[root@saiedpc ~]# yum update mysql mysql-server httpd php php-mysql
...
Could not find update match for php
Could not find update match for php-mysql
Could not find update match for mysql-server
Could not find update match for mysql
Resolving Dependencies
...
=============================================================================
Package Arch Version Repository Size
=============================================================================
Updating:
httpd i386 2.2.2-1.2 updates 1.1 M
Updating for dependencies:
httpd-manual i386 2.2.2-1.2 updates 846 k
mod_ssl i386 1:2.2.2-1.2 updates 99 k
Transaction Summary
=============================================================================
Install 0 Package(s)
Update 3 Package(s)
Remove 0 Package(s)
Total download size: 2.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): mod_ssl-2.2.2-1.2. 100% |=========================| 99 kB 00:14
 
Search WWH ::




Custom Search