Find the answer to your Linux question:
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.
  1. #1
    Just 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

  2. #2
    oz
    oz is offline
    forum.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

  3. #3
    Just 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.

  4. #4
    oz
    oz is offline
    forum.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

  5. #5
    oz
    oz is offline
    forum.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:

    Code:
    rm /path/to/file
    Hope that helps.
    oz

  6. #6
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    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".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •