Ask Your Question
0

How do I modify contents of the /etc/yum.repos.d folder?

asked 2013-04-22 05:01:33 -0600

Sasmit gravatar image

updated 2014-09-28 11:20:32 -0600

mether gravatar image

I want to save a file in etc/yum.repos.d/ but fedora is denying me permission saying its a root directory and only root user can acces it. I am the root user so how do i log into it and make changes to that directory.?

edit retag flag offensive close merge delete

Comments

1

You need root access to add to yum.repos.d....If you don't have root access, then I guess you are not allowed to add any entries to yum.repos.d!

anishjp gravatar imageanishjp ( 2013-04-22 06:47:02 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2013-04-22 07:47:21 -0600

Rabin gravatar image

On the terminal window run:

sudo -i  # you will be asked for you'r own password, only works if you in the sudousers file
# if you have the root passowrd you can use this command
su - # switch user to root
cd /etc/yum.repo.d/
wget "link-to-your-repo-file.repo"
edit flag offensive delete link more
-1

answered 2013-04-22 06:31:05 -0600

Sasmit gravatar image

When you switch on....and the login page appears, there is an option called "not listed". Click it and then enter 'root' in the username bar and press enter. When prompted for a password, type the root password you had created while installation.

edit flag offensive delete link more

Comments

login to the GUI as root is a very bad suggestion!

The IceMan Blog gravatar imageThe IceMan Blog ( 2013-04-22 07:49:49 -0600 )edit

well..I could make changes to the yum.repos.d directory

Sasmit gravatar imageSasmit ( 2013-04-22 08:23:56 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-04-22 05:01:33 -0600

Seen: 4,760 times

Last updated: Apr 22 '13