Yum: Difference between revisions

m Text replacement - "<(\/?)source" to "<$1syntaxhighlight"
 
(3 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/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-yum.html
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/
<source lang="bash">
<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
</source>
</syntaxhighlight>


;How do I find what repository provides a given package?:
;How do I find what repository provides a given package?:
Line 18: Line 18:


For example, you have a package called <code>glibc-devel-2.12-1.107.el6_4.4.i686</code>
For example, you have a package called <code>glibc-devel-2.12-1.107.el6_4.4.i686</code>
<source lang="bash">
<syntaxhighlight lang="bash">
repoquery -i glibc-devel-2.12-1.107.el6_4.4.i686
repoquery -i glibc-devel-2.12-1.107.el6_4.4.i686
</source>
</syntaxhighlight>
<pre>
<pre>
Name        : glibc-devel
Name        : glibc-devel
Line 46: Line 46:


List the files of a package with <code>repoquery</code>
List the files of a package with <code>repoquery</code>
<source lang="bash">sudo repoquery -q -l mysql-connector-java</source>
<syntaxhighlight lang="bash">sudo repoquery -q -l mysql-connector-java</syntaxhighlight>
If you don't have the repoquery command, install yum-utils first.
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]]
[[Category:Packages]]