Setting up Fedora
This article explains how to install Fedora from a boot CD and fetch files
from an FTP server.
If you don't want to burn five
CD's or a DVD, you can just burn a CD with boot.iso (a.k.a. netinst.iso; Yes,
it's 250MB), boot from this small
image, and fetch files from an FTP server close to you.
- After burning the ISO, use this CD to boot the computer
- Choose the basic option, and TAB to append "askmethod" to
the boot command
- A list of mirrors can be found at http://fedora.redhat.com/download/mirrors.html.
Aim at where the /os directory is located, eg. http://mirrors.ircam.fr/pub/fedora/linux/releases/13/Fedora/i386/os
If you get a "Unable to receive install.img" error, use a HTTP
server instead of FTP. Also, if you get an error while downloading one of
the RPM's, just hit Retry: It might just be a network glitch
- Follow the wizard to install Fedora. A complete installation documentation
can be found here
If the Ethernet interface isn't up after logging on locally, here's how
to configure Fedora to start Ethernet automatically at boot time: chkconfig
- Update through "yum update"
- To update the kernel and kernel-devel packages, you might see yum downloading
mismatched files (eg. i686 for kernel, i586 for kernel-devel), so you're
better off downloading RPMs and updating locally. Reboot and use this new kernel
- Install NTP to keep the server synchronized:
- yum install ntp
- vim /etc/ntp.conf to allow all hosts on network 192.168.0/24 to
sync with the server:
restrict 192.168.0.0 mask 255.255.255.0
- Sync the server a couple of times, and wait a few minutes:
ntpdate -u 0.pool.ntp.org
- Launch ntp:
/sbin/service ntpd start
- Add ntp to the list of services launched at boot time:
- To sync Windows host, read this
Adding multiple mirrors for yum to use
- # Added this because some mirrors go down and then retying takes forever.
- # Uncomment below if you want to autoupdate also the kernel rpms (reboot
is necessary to use the new kernel, once installed)
- # exclude=kernel*
- ## Basic Fedora ####################
- name=Fedora Core $releasever - $basearch - Base
- name=Fedora Core $releasever - $basearch - Released Updates
- ## Fedora Extras #####################
- name=Fedora.us Extras (Stable)
Using Yum to manage packages
- install package1 [package2] [...]
- update [package1] [package2] [...]
- upgrade [package1] [package2] [...]
- remove | erase package1 [package2] [...]
- list [...]
- info [...]
- provides | whatprovides feature1 [feature2] [...]
- clean [ packages | headers | metadata | cache | dbcache | all ]
- groupinstall group1 [group2] [...]
- groupupdate group1 [group2] [...]
- grouplist [hidden]
- groupremove group1 [group2] [...]
- groupinfo group1 [...]
- search string1 [string2] [...]
- shell [filename]
- resolvedep dep1 [dep2] [...]
- localinstall rpmfile1 [rpmfile2] [...]
- localupdate rpmfile1 [rpmfile2] [...]
- deplist package1 [package2] [...]
The following are the ways which you can invoke yum in list mode. Note
that all list commands include information on the version of the package.
- yum list [all | glob_exp1] [glob_exp2] [...]
List all available
and installed packages.
- yum list available [glob_exp1] [...]
List all packages in the
yum repositories available to be installed.
- yum list updates [glob_exp1] [...]
List all packages with updates
available in the yum repositories.
- yum list installed [glob_exp1] [...]
List the packages specified
by args. If an argument does not match the name of an available package,
it is assumed to be a shell-style glob and any matches are printed
- yum list extras [glob_exp1] [...]
List the packages installed
on the system that are not available in any yum repository listed
in the config file.
- yum list obsoletes [glob_exp1] [...]
List the packages installed
on the system that are obsoleted by packages in any yum repository listed
in the config file.
- yum list recent
List packages recently added into the repositories.
All the list options mentioned above take file-glob-syntax wildcards or package
names as arguments, for example yum list available ’foo*’
will list all available packages that match ’foo*’. (The single quotes
will keep your shell from expanding the globs.
The following are the ways which you can invoke yum in clean mode. Note that
"all files" in the commands below means "all files
in currently enabled repositories". If you want
to also clean any (temporarily) disabled repositories you need to use --enablerepo=’*’
yum clean packages
any cached packages from the system. Note that packages are not automatically
yum clean headers
all of the header files which yum uses for dependency resolution.
yum clean metadata
all of the files which yum uses to determine the remote availability
of packages. Using this
will force yum to download all the metadata the next time it is run.
yum clean cache
the pickle based cache used for faster access to metadata. Using this
option will force yum
recreate the cache the next time it is run if you don’t have sqlite available.
yum clean dbcache
the sqlite cache used for faster access to metadata.
Using this option will force yum to
the cache the next time it is run.
yum clean all
yum clean packages and yum clean headers as above.