Results 1 to 6 of 6
How do you remove a repository from yum? nano cant edit /etc/yum.repos.d...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-26-2008 #1Just Joined!
- Join Date
- May 2007
- Location
- Texas
- Posts
- 85
repository question
How do you remove a repository from yum? nano cant edit /etc/yum.repos.d
- 01-26-2008 #2forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,733
You must have root permissions to edit anything outside of your own /home directory. Try it this way:
Code:su nano /etc/yum.repos.d
oz
- 01-26-2008 #3Just Joined!
- Join Date
- May 2007
- Location
- Texas
- Posts
- 85
nano cant do it [ "/etc/yum.repos.d" is a directory ] and i did it as root the first time.
- 01-26-2008 #4forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,733
I'm not running Fedora, Red Hat, or CentOS, so can't check it personally to see what is what but I found this page (section 8.1) that should help you to get it all sorted:
Managing Software with yum
It's for CentOS but should work about the same.
To completely remove access to a repository:
1. Delete the relevant file from /etc/yum.repos.d/.
2. Delete the cache directory from /var/cache/yum/.oz
- 01-26-2008 #5forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,733
Oh, and to remove a file using the command line, you'd su to root, then enter:
Hope that helps.Code:rm /path/to/file
oz
- 01-26-2008 #6
Another option would be to edit the repo file of the repository you wish to disable (the files are in /etc/yum.repos.d) and chage "enabled=1" to "enabled=0".


Reply With Quote
