Using YUM Install and Manage Software on Fedora
Using YUM Install and Manage Software on Fedora
Software installation and Management tool on Fedora using YUM. YUM is widely use in Linux operating system and specify on Fedora system as software installation tool and software management tools. YUM can be use using yum command line or use with the graphical front end tool such as yumex. The step by step example below show on how to using YUM to Install, Update, Remove and Manage software on Fedora Linux. The yum command list below tested on Fedora system to show the example and how we can use yum command to install, update, remove and manage the software package on the system.
Note:- YUM use the repo configuration file to locate the newly or available and updated software for your system. This configuration repo that locate on /etc/yum.repos.d/ directory and this repo file usually setup to use the internet as software repository source, so if you want to install software package on Fedora using the installation DVD you may need to configure your installation disk as repo see the example on how to setup Fedora 10 installation DVD as software installation repo and setup Fedora 11 installation DVD as software installation repo.
YUM Get Faster Download using yum-fastestmirror
Download and install yum-fastestmirror to make sure that you use the best mirror available so that download software package become faster. To enable or disable yum plugin, edit plugin configuration file located in /etc/yum/pluginconf.d/fastestmirror.conf
[fedora11@linux ~]$ su - -c 'yum install yum-fastestmirror'
Password: <-- key in root password here and hit 'Enter' key
Install Software Package using YUM commands
Check available package to install. Use yum command below to list available software package that can be install on your system.
[fedora11@linux ~]$ su - -c 'yum list available | less'
Password: <-- key in root password here and hit 'Enter' key
Install a new software package using yum command, the telnet is the example package name use here, change the package name to the package name that you want to install on the system.
[fedora11@linux ~]$ su - -c 'yum install telnet'
Password: <-- key in root password here and hit 'Enter' key
Install software including the software package that related to the software package name.
[fedora11@linux ~]$ su - -c 'yum install \*telnet\*'
Password: <-- key in root password here and hit 'Enter' key
Update Software Package using YUM commands
Check updates available for your Linux Fedora system using YUM command.
[fedora11@linux ~]$ su - -c 'yum check-update'
Password: <-- key in root password here and hit 'Enter'key
Display a list of packages for which updates are available.
[fedora11@linux ~]$ su - -c 'yum list updates'
Password: <-- key in root password here and hit 'Enter' key
Update Linux Fedora system using YUM command.
[fedora11@linux ~]$ su - -c 'yum update'
Password: <-- key in root password here and hit 'Enter' key
Using YUM to update Linux Fedora system and answer to any question with yes (example: unattended Fedora update).
[fedora11@linux ~]$ su - -c 'yum -y update'
Password: <-- key in root password here and hit 'Enter' key
Update a single software package, the gedit software package is the example of software package name use here, change the software package name to the specific software package name that you want to update.
[fedora11@linux ~]$ su - -c 'yum update gedit'
Password: <-- key in root password here and hit 'Enter' key
Uninstall Remove Software package
Uninstall or Remove software package on Fedora Linux, yum command below remove software package called telnet from the system, change the software package name to the software package that you want to uninstall or remove from the system.
[fedora11@linux ~]$ su - -c 'yum remove telnet'
Password: <-- key in root password here and hit 'Enter' key
or
[fedora11@linux ~]$ su - -c 'yum erase telnet'
Password: <-- key in root password here and hit 'Enter' key
Check Software Packages Installed
Display and list installed packages. Want to know what software packages already install on you Fedora system? The yum command below can be use to list all installed software package (list software that already being install on the system).
[fedora11@linux ~]$ su - -c 'yum list installed | less'
Password: <-- key in root password here and hit 'Enter' key
Display and list of all available and install packages
[fedora11@linux ~]$ su - -c 'yum list all | less'
Password: <-- key in root password here and hit 'Enter' key
Display and list install packages that are not available in any yum repository listed in the config file.
[fedora11@linux ~]$ su - -c 'yum list extras | less'
Password: <-- key in root password here and hit 'Enter' key
Check specific software package available
[fedora11@linux ~]$ su - -c 'yum list \*squid\*'
Password: <-- key in root password here and hit 'Enter' key
Check Packages Information
Display software package information, the yum command below show information about yum package itself, change the software package name to the software package name that you want to display the information about the package.
[fedora11@linux ~]$ su - -c 'yum info yum'
Password: <-- key in root password here and hit 'Enter' key
Check what package provide the file
Check where file comes from. Use command below to check where the file comes from and what package provide that file.
[fedora11@linux ~]$ su - -c 'yum whatprovides /etc/passwd'
Password: <-- key in root password here and hit 'Enter' key
Clean YUM Cache
Clean all cached packages, use yum command below to clean or remove download packages because yum does not automatically delete / remove packages after they are downloaded.
[fedora11@linux ~]$ su - -c 'yum clean packages'
Password: <-- key in root password here and hit 'Enter' key
Clean yum header files which yum uses for dependency resolution.
[fedora11@linux ~]$ su - -c 'yum clean headers'
Password: <-- key in root password here and hit 'Enter' key
Clean yum metadata and force yum to download new metadata the next time it is run.
[fedora11@linux ~]$ su - -c 'yum clean metadata'
Password: <-- key in root password here and hit 'Enter' key
Clean yum cache db and force yum to recreate the cache the next time it is run.
[fedora11@linux ~]$ su - -c 'yum clean dbcache'
Password: <-- key in root password here and hit 'Enter' key
Remove all yum cached packages and yum old headers.
[fedora11@linux ~]$ su - -c 'yum clean all'
Password: <-- key in root password here and hit 'Enter' key
Packages Group Install using YUM
List all available installable software groups.
[fedora11@linux ~]$ su - -c 'yum grouplist | less'
Password: <-- key in root password here and hit 'Enter' key
Install software package group (group installation). Yum command below install graphical window system GUI on Linux Fedora system, change the package group base on available package group from the yum command output above.
[fedora11@linux ~]$ su - -c 'yum groupinstall "X Window System"'
Password: <-- key in root password here and hit 'Enter' key
Update all package in Group
[fedora11@linux ~]$ su - -c 'yum groupupdate "X Window System"'
Password: <-- key in root password here and hit 'Enter' key
Uninstall remove all software packages in group
[fedora11@linux ~]$ su - -c 'yum groupremove "X Window System"'
Password: <-- key in root password here and hit 'Enter' key
YUM manual
Read YUM manual for more information
[fedora11@linux ~]$ man yum
or
[fedora11@linux ~]$ info yum
Keywords: software management, using yum, yum fedora, yum download, install software, install package, update software, uninstall package, remove package, check software, check package, clean yum package, group install
- 16261 reads
- Email this page
1 comment
fedora 12
Submitted by rao (not verified) on Sun, 09/02/2012 - 14:45.Dear Friends,
I have installed fedora 12 on my systems fresh copy but i want to install telnet server on my fedora and i installed telnet using yum install telnet-server after i added port no 23 on xinetd.d/telnet file still i am not able to use telnet service in my xp client but i can able to login telnet in fedora system itself please guide me about this.
regards
rao