Yum: Difference between revisions

No edit summary
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight"
 
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.