Ask Your Question
0

cant get in root

asked 2014-08-19 10:04:50 -0500

Tayer1111 gravatar image

updated 2014-08-21 22:29:57 -0500

FranciscoD_ gravatar image

trying to install wine. but cant get to root. OS F20

edit retag flag offensive close merge delete

Comments

2

Hello and welcome at AskFedora. Please read the AskFedora Guidelines when you have time. Can you be more specific about what you want to achieve and what is the problem exactly ? Thanks.

NickTux gravatar imageNickTux ( 2014-08-19 10:53:40 -0500 )edit

when i try to install wine from terminal it sez i need to be in root dir. to use yum. whem i try to go to root i get this "bash: cd: root: Permission denied" I am new to linux just installed it yesterday Tony

Tayer1111 gravatar imageTayer1111 ( 2014-08-19 14:11:21 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
5

answered 2014-08-19 16:35:21 -0500

cobra gravatar image

updated 2014-08-20 00:56:01 -0500

abadrinath gravatar image

You don't need to be in the root directory to use yum, you need to be the root user. This is similar to 'Administrator' in some commercial operating systems.

From that command line use:

su -

and when prompted type the root password you assigned to your system. You can then use the yum command. As this is new to you, before you add any new software, you might want to just take the maintenance step of updating the packages already installed. Use this first:

yum update

and follow prompts. If the kernel gets updated, log out of root using:

exit

and then reboot.

As an alternative, try:

su -c 'yum update' and give your root password. After update, restart if there is a kernel update.

edit flag offensive delete link more

Comments

1

Or, if you only need to update your system, use this: su -c 'yum update Give the root password when prompted and when yum is finished, you're back to your regular user again.

sideburns gravatar imagesideburns ( 2014-08-19 16:40:29 -0500 )edit
2

It's su -c 'yum update'. Missed a ' :P

abadrinath gravatar imageabadrinath ( 2014-08-20 00:48:55 -0500 )edit
1

OK i will try your advice Thanks so much Tony

Tayer1111 gravatar imageTayer1111 ( 2014-08-20 06:39:34 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-08-19 10:04:50 -0500

Seen: 221 times

Last updated: Aug 20 '14