Posted On April 1, 2019

How to configure CentOS 5.2 to use RPMForge and YUM

kimconnect 0 comments
blog.KimConnect.com >> Linux >> How to configure CentOS 5.2 to use RPMForge and YUM
rpm -Uhv
yum update
 
Yum install [package name]
Yup info [package name]
Yum remove [package name]
 
The following thing will list all the packages installed in the system and that can (they must) be updated:
Code:
yum list updates|less
To search in package names only, use yum list. This differs from search in that it’s much faster, as it will search package names only, while yum search will search all the package info, including package description.
Code:
 
yum list something
 
Example
Code:
 
yum list mozilla
 
 
To get the name of the package containing a given file:
Code:
 
yum provides filename
 
example:
Code:
 
yum provides /usr/bin/mozilla
 
 
Here’s some new goodies in yum 2.2 (Fedora Core 3 and beyond)
 
To get a list of packages updated/added to any of your repositories recently:
Code:
 
yum list recent
 
 
To enable a repository which is disabled in the configuration:
Code:
 
yum –enablerepo=reponame install packagename
 
 
example
Code:
 
yum –enablerepo=dag install j2re
 
 
To list available software groups, such as GNOME desktop environment or X window system. This is also available in the Core 2 yum, but servers doesn’t use this wonderful feature much.
Code:
 
yum grouplist
 
 
To install such a group:
Code:
 
yum groupinstall “groupname”
 
Example:
Code:
 
yum groupinstall “GNOME Desktop Environment”
 
And to update a group
Code:
 
yum groupupdate “GNOME Desktop Environment”
And remember folks, you can always use -y to say yes to everything, and -C to use the cache only.
 
One tip, you can use also joker-signs as * or ? e.g.
Code:
 
yum install gkrellm*

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

How To Install Adobe Acrobat Reader DC on Linux Mint 20

Adobe Acrobat Reader may be available as a .deb install-able package. However, its 'Reader DC'…

Dev Environment Technitium DNS Server

Windows: $technitiumPortableDownload="https://download.technitium.com/dns/DnsServerPortable.zip"$tempDir="C:\Temp"; $extractionDir="C:\Technitium" $destinationFile = "$tempDir\DnsServerPortable.zip"; try{[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12}catch{} New-Item -ItemType Directory -Force -Path $tempDir…

How To Compile Package Source

Notice: currently, we know of a few releases of PKGSRC that are usable as it…