Skip to content

Instantly share code, notes, and snippets.

@yaitskov
Created December 11, 2012 16:09
Show Gist options
  • Save yaitskov/4259789 to your computer and use it in GitHub Desktop.
Save yaitskov/4259789 to your computer and use it in GitHub Desktop.
yum repo configuration
exapmle of /etc/yum.repos.d/test.repo
[my-tpl]
name=Jelastic Tpl Repo
mirrorlist=http://x:x@repo.jelastic.com/tpl/mirrorlist/centos-6-jelastic-tpl-repo
failovermethod=priority
enabled=1
gpgcheck=0
[my-centos6]
name=Jelastic CentOs 6 Repo
mirrorlist=http://log:pass@repo.jelastic.com/jelastic-6/mirrorlist/centos-6-jelastic-repo
failovermethod=priority
enabled=1
gpgcheck=0
[base]
name=CentOS-- Base
mirrorlist=http://mirrorlist.centos.org/?release=6&arch=amd64&repo=os
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS- Updates
mirrorlist=http://mirrorlist.centos.org/?release=6&arch=amd64&repo=updates
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS- Extras
mirrorlist=http://mirrorlist.centos.org/?release=6&arch=amd64&repo=extras
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
@yaitskov
Copy link
Author

yum install yum-downloadonly

this plugin just download rpm without installing them

@yaitskov
Copy link
Author

list of available packages in specific repository

yum --disablerepo "*" --enablerepo "pgdg83"

@yaitskov
Copy link
Author

yum-config-manager --disable "*"

because yum --disablerepo doesn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment