snipt

Ctrl+h for KB shortcuts
#57302

Bash

Install Yum

rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
https://snipt.net/embed/122987a72579dbf221c2e6d98e1350ca/
https://snipt.net/raw/122987a72579dbf221c2e6d98e1350ca/
122987a72579dbf221c2e6d98e1350ca
bash
Bash
1
2014-04-13T16:26:12
True
False
/api/public/snipt/57302/
install-yum
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm </span></pre></div> </td></tr></table>
install, yum
#36536

Bash

yum update openssl

yum update openssl
https://snipt.net/embed/184e7629edee45a0ada38ed05fe5b8db/
https://snipt.net/raw/184e7629edee45a0ada38ed05fe5b8db/
184e7629edee45a0ada38ed05fe5b8db
bash
Bash
1
2014-04-18T10:48:25
True
False
/api/public/snipt/36536/
yum-update-openssl
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>yum update openssl </span></pre></div> </td></tr></table>
openssl, update, yum
#24379

Bash

Install EPEL repository (64 bit)

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
https://snipt.net/embed/d50b38c7eb8eeb093e6656962040b6c2/
https://snipt.net/raw/d50b38c7eb8eeb093e6656962040b6c2/
d50b38c7eb8eeb093e6656962040b6c2
bash
Bash
1
2014-04-19T10:20:43
True
False
/api/public/snipt/24379/
install-epel-repository-64-bit
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm </span></pre></div> </td></tr></table>
administration, centos, linux, repository, server, yum
#22361

Bash

Install Package using Yum without Adding Repository

# Install a package using yum without permanently adding/enabling the repo.
yum --enablerepo=reponame install packagename
https://snipt.net/embed/4e7aa76b79fc91dc88928c825fb02342/
https://snipt.net/raw/4e7aa76b79fc91dc88928c825fb02342/
4e7aa76b79fc91dc88928c825fb02342
bash
Bash
2
2014-04-16T09:38:46
True
False
/api/public/snipt/22361/
install-package-using-yum-without-adding-repository
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="c"># Install a package using yum without permanently adding/enabling the repo.</span> </span><span id="L-2"><a name="L-2"></a>yum --enablerepo<span class="o">=</span>reponame install packagename </span></pre></div> </td></tr></table>
centos, linux, repository, yum
#8895

Bash

Get packages names from /var/log/yum.log

sed s/'^.*Installed: \([0-9]:\)\?\([a-z0-9_-]*\?\)-.*'/'\2'/gi | sed s/'-[0-9]\+$'//gi
https://snipt.net/embed/e4c8c979199d1c9490a3a3817d16ff9d/
https://snipt.net/raw/e4c8c979199d1c9490a3a3817d16ff9d/
e4c8c979199d1c9490a3a3817d16ff9d
bash
Bash
1
2014-04-13T09:05:23
True
False
/api/public/snipt/8895/
get-packages-names-from-varlogyumlog
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>sed s/<span class="s1">&#39;^.*Installed: \([0-9]:\)\?\([a-z0-9_-]*\?\)-.*&#39;</span>/<span class="s1">&#39;\2&#39;</span>/gi <span class="p">|</span> sed s/<span class="s1">&#39;-[0-9]\+$&#39;</span>//gi </span></pre></div> </td></tr></table>
bash, linux, yum