• Skip to primary navigation
  • Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

repo

Yum Repo Plugins

by Ulysses · Apr 2, 2020

Here’s how to disable plugin in Yum repos.

# check which plugins are enabled
yum repolist
# disable plugins
yum update --disableplugin=product-id,subscription-manager
# check agin
yum repolist

# check which plugins are enabled yum repolist # disable plugins yum update --disableplugin=product-id,subscription-manager # check agin yum repolist

If that doesn’t work, check the individual config files of each plugin.

cd /etc/yum/pluginconf.d/
vim product-id.conf
vim subscription-manager.conf

cd /etc/yum/pluginconf.d/ vim product-id.conf vim subscription-manager.conf

Disable it.

[main]
enable=0

[main] enable=0

Filed Under: Linux Tagged With: plugins, redhat, repo, repolist, yum

Yum Add Repo Manually

by Ulysses · Aug 5, 2019

Add a yum repo manually by adding a configuration file in /etc/yum.repo.d/ directory.

cd /etc/yum.repos.d/
vi newrepo

cd /etc/yum.repos.d/ vi newrepo

Add the following.

[newrepo]
name=New Repo for RHEL/ CentOS $releasever - $basearch
baseurl=http://newrepo.domain.com/centos/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://newrepo.domain.com/RPM-GPG-KEY.txt

[newrepo] name=New Repo for RHEL/ CentOS $releasever - $basearch baseurl=http://newrepo.domain.com/centos/$releasever/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://newrepo.domain.com/RPM-GPG-KEY.txt

You may need to import the key.

rpm --import http://newrepo.domain.com/RPM-GPG-KEY.txt

rpm --import http://newrepo.domain.com/RPM-GPG-KEY.txt

Finally, test the new repo by running the following.

yum update -y
yum install new-package

yum update -y yum install new-package

Filed Under: Cloud Tagged With: 3rd party, add, new, repo, yum

Yum Remove Repo

by Ulysses · Feb 19, 2019

How to remove repos in Yum. Just delete the repo file in /etc/yum.repos.d.

rm /etc/yum.repos.d/repo-name.repo

rm /etc/yum.repos.d/repo-name.repo

Filed Under: Linux Tagged With: redhat, remove, repo, yum

Cloning A GCP Repo

by Ulysses · Aug 3, 2018

Here are the steps on how to clone a Google Cloud Platform (GCP) repository. This is assuming you already installed Google Cloud SDK.

gcloud init
gcloud source repos clone name_of_repo --project=project_name
cd name_of_repo
git commit -a -m "your comment"
git push -u origin master

gcloud init gcloud source repos clone name_of_repo --project=project_name cd name_of_repo git commit -a -m "your comment" git push -u origin master

Filed Under: Cloud Tagged With: gcp, git, repo

Copyright © 2012–2021