How to remove yum repository?
How to remove yum repository?
I don't want to disable it... I want to completely remove it, so it doesn't sneak back later. I don't see a yum --removerepo and Googling leads to instructions to disable.
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
How to remove yum repository?
Repositories are installed and removed using the 'rpm' command.
man rpm
man rpm
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: How to remove yum repository?
[quote]
jnojr wrote:
I don't want to disable it... I want to completely remove it, so it doesn't sneak back later. I don't see a yum --removerepo and Googling leads to instructions to disable.[/quote]
Repo configs are stored in /etc/yum.repos.d/*.repo or occasionally (and inadvisedly) appended to the end of /etc/yum.conf. If there is a file in /etc/yum.repos.d/ it can be removed from visibility to yum by deleting or renaming it to something other than .repo.
If a repo config was installed with yum or rpm, then the package should be removed. [code]rpm -qf /etc/yum.repos.d/RepoName.repo[/code]will give you the name of the package. For instance:[code]
# rpm -qf /etc/yum.repos.d/rpmforge.repo
rpmforge-release-0.5.1-1.el5.rf
# yum remove rpmforge-release
[/code]
Edit: I see that while I was on the phone Gerald beat me to the punch yet again . :-)
jnojr wrote:
I don't want to disable it... I want to completely remove it, so it doesn't sneak back later. I don't see a yum --removerepo and Googling leads to instructions to disable.[/quote]
Repo configs are stored in /etc/yum.repos.d/*.repo or occasionally (and inadvisedly) appended to the end of /etc/yum.conf. If there is a file in /etc/yum.repos.d/ it can be removed from visibility to yum by deleting or renaming it to something other than .repo.
If a repo config was installed with yum or rpm, then the package should be removed. [code]rpm -qf /etc/yum.repos.d/RepoName.repo[/code]will give you the name of the package. For instance:[code]
# rpm -qf /etc/yum.repos.d/rpmforge.repo
rpmforge-release-0.5.1-1.el5.rf
# yum remove rpmforge-release
[/code]
Edit: I see that while I was on the phone Gerald beat me to the punch yet again . :-)
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: How to remove yum repository?
Just trying to catch up! :-)
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: How to remove yum repository?
So shall we make the contest on total posts, or total characters posted? :-)
- AlanBartlett
- Forum Moderator
- Posts: 9345
- Joined: 2007/10/22 11:30:09
- Location: ~/Earth/UK/England/Suffolk
- Contact:
Re: How to remove yum repository?
[quote]
So shall we make the contest on total posts, or total characters posted? :-)
[/quote]
Are [b]toracat[/b] and I allowed to take part? :-P
So shall we make the contest on total posts, or total characters posted? :-)
[/quote]
Are [b]toracat[/b] and I allowed to take part? :-P
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: How to remove yum repository?
Dunno - looks like it may be a grudge match well down the rankings from you luminaries. ;-)
Should be a design goal for website 2.0 - Track total posts and total size. Provide rankings. :-)
Should be a design goal for website 2.0 - Track total posts and total size. Provide rankings. :-)
- AlanBartlett
- Forum Moderator
- Posts: 9345
- Joined: 2007/10/22 11:30:09
- Location: ~/Earth/UK/England/Suffolk
- Contact:
Re: How to remove yum repository?
Ha! [i]Rankings[/i].
How about this [url=http://boardreader.com/sp/www_centos_org_Forums_69336.html]URL[/url]? ;-)
How about this [url=http://boardreader.com/sp/www_centos_org_Forums_69336.html]URL[/url]? ;-)
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: How to remove yum repository?
Well, I kind of like that one. :-D
Shall I lock this hijacked thread now? ;-)
Shall I lock this hijacked thread now? ;-)
- AlanBartlett
- Forum Moderator
- Posts: 9345
- Joined: 2007/10/22 11:30:09
- Location: ~/Earth/UK/England/Suffolk
- Contact:
Re: How to remove yum repository?
[quote]
Well, I kind of like that one. :-D
[/quote]
Somehow I [i]knew[/i] you would. However [b]pschaff[/b] isn't always heading the list . . .
[quote]
Shall I lock this hijacked thread now? ;-)
[/quote]
Not until [b]toracat[/b] and [b]Ned[/b] have made their postings! 8-)
Well, I kind of like that one. :-D
[/quote]
Somehow I [i]knew[/i] you would. However [b]pschaff[/b] isn't always heading the list . . .
[quote]
Shall I lock this hijacked thread now? ;-)
[/quote]
Not until [b]toracat[/b] and [b]Ned[/b] have made their postings! 8-)