Yum: Difference between revisions
adding additional rpm repositories |
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight" |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
YUM, it's not just good eatin', it's also for updating your RedHat (or CentOS) packages. | YUM, it's not just good eatin', it's also for updating your RedHat (or CentOS) packages. | ||
https://access.redhat.com/ | Here's a [https://access.redhat.com/sites/default/files/attachments/rh_yum_cheatsheet_1214_jcs_print-1.pdf cheatsheet] | ||
What are the top 20 yummiest commands? | What are the top 20 yummiest commands? | ||
| Line 8: | Line 8: | ||
from http://pkg.jenkins-ci.org/redhat/ | from http://pkg.jenkins-ci.org/redhat/ | ||
< | <syntaxhighlight lang="bash"> | ||
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo | sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo | ||
sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key | sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key | ||
sudo yum install jenkins | sudo yum install jenkins | ||
</ | </syntaxhighlight> | ||
;How do I find what repository provides a given package?: | |||
: You use <code>repoquery</code> | |||
For example, you have a package called <code>glibc-devel-2.12-1.107.el6_4.4.i686</code> | |||
<syntaxhighlight lang="bash"> | |||
repoquery -i glibc-devel-2.12-1.107.el6_4.4.i686 | |||
</syntaxhighlight> | |||
<pre> | |||
Name : glibc-devel | |||
Version : 2.12 | |||
Release : 1.107.el6_4.4 | |||
Architecture: i686 | |||
Size : 976153 | |||
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> | |||
Group : Development/Libraries | |||
URL : http://sources.redhat.com/glibc/ | |||
Repository : rhel-6-workstation-rpms | |||
Summary : Object files for development using standard C libraries. | |||
Source : glibc-2.12-1.107.el6_4.4.src.rpm | |||
Description : | |||
The glibc-devel package contains the object files necessary | |||
for developing programs which use the standard C libraries (which are | |||
used by nearly all programs). If you are developing programs which | |||
will use the standard C libraries, your system needs to have these | |||
standard object files available in order to create the | |||
executables. | |||
Install glibc-devel if you are going to develop programs which will | |||
use the standard C libraries. | |||
</pre> | |||
List the files of a package with <code>repoquery</code> | |||
<syntaxhighlight lang="bash">sudo repoquery -q -l mysql-connector-java</syntaxhighlight> | |||
If you don't have the repoquery command, install yum-utils first. | |||
== EPEL == | |||
The Extra Packages for Enterprise Linux repository is usually something you want to add to all your RedHat/CentOS boxes. [[EPEL]] | |||
[[Category:System Administration]] | [[Category:System Administration]] | ||
[[Category:Packages]] | |||