Installing Fedora RPMs in CentOS

I recommend to use Fedora EPEL instead: “Extra Packages for Enterprise Linux (EPEL) is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages for Red Hat Enterprise (RHEL) and its compatible spinoffs such as CentOS or Scientific Linux. Fedora is the upstream of RHEL and add-on packages for … Read more

Upgrade cURL to latest on CentOS

This is an old question, but it is still one the first results in google search, so I’d like post the solution that solved my problem. Create a new file /etc/yum.repos.d/city-fan.repo Paste the following contents: [CityFan] name=City Fan Repo baseurl=http://www.city-fan.org/ftp/contrib/yum-repo/rhel$releasever/$basearch/ enabled=1 gpgcheck=0 Type this into the terminal: yum clean all yum install curl And it’s … Read more

Do I need a RHEL subscription to install packages?

Yes, you have to have an active RHEL subscription to download packages from RHEL’s repositories. If your machine has never been subscribed, or the subscription is expired, you will not be able to use any of the repositories provided by RHEL. Red Hat states, in relevant part: If you choose to let all your subscriptions … Read more

How do I install an rpm that complains about rpmlib(FileDigests)

Whats with the syntax of something followed by parentheses? From http://jfearn.fedorapeople.org/en-US/RPM/0.1/html/RPM_Guide/ch-advanced-packaging.html: Scripting languages such as Perl and Tcl allow for add-on modules. Your package may require some of these add-on modules. RPM uses a special syntax with parenthesis to indicate script module dependencies. For example: Requires: perl(Carp) >= 3.2 This indicates a requirement for the … Read more

How to list the contents of a package using YUM?

There is a package called yum-utils that builds on YUM and contains a tool called repoquery that can do this. $ repoquery –help | grep -E “list\ files” -l, –list list files in this package/group Combined into one example: $ repoquery -l time /usr/bin/time /usr/share/doc/time-1.7 /usr/share/doc/time-1.7/COPYING /usr/share/doc/time-1.7/NEWS /usr/share/doc/time-1.7/README /usr/share/info/time.info.gz On at least one RH system, … Read more

Install rpm package using Ansible

Ansible yum module already provides a solution for this problem. The path to the local rpm file on the server can be passed to the name parameter. From the Ansible yum module documentation: You can also pass a url or a local path to a rpm file. To operate on several packages this can accept … Read more