LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-01-2009, 04:51 PM   #1
kalyan1985
LQ Newbie
 
Registered: May 2009
Posts: 16

Rep: Reputation: 1
Unhappy Uninstalled Nautilus by mistake and yum is not working.


Hi All,

I have done a blunder but definitely I'm learning something new with this

1) As my yum was not working properly, seeing many how to's i have removed yum from my fedora 10 guest OS running on Windows vista(host) using VMWare.


[root@localhost kalyan]# yum
CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum.conf


2)I found my smb.conf empty, so thought of uninstalling it using add/remove program. then it showed for all dependencies and in it nautilus browser was also present, by mistake i removed that one too..
whats the solution now. not worried about samba, first i would like to get my system into normal condition.

I cant open anything from places/ it says : no application registered as handilling this file

help me out to work well with browser and yum, is there anything like windows recovery in linux. I know this is not such a stupid windows but tell me something... nervous...


Thanks in advance

Last edited by kalyan1985; 05-01-2009 at 05:01 PM.
 
Old 05-01-2009, 05:00 PM   #2
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Do you still have the install media? If so, put it in the drive and when it is mounted, run the command:

sudo yum install `find /media -name yum\*.rpm`

After that you can run

sudo yum reinstall <pkgname>
or
sudo yum install <pkgname>

where <pkgname> is the name of a package you would like to reinstall (e.g. nautilus).

HTH

Forrest
 
Old 05-01-2009, 05:16 PM   #3
kalyan1985
LQ Newbie
 
Registered: May 2009
Posts: 16

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by forrestt View Post
Do you still have the install media? If so, put it in the drive and when it is mounted, run the command:

sudo yum install `find /media -name yum\*.rpm`

After that you can run

sudo yum reinstall <pkgname>
or
sudo yum install <pkgname>

where <pkgname> is the name of a package you would like to reinstall (e.g. nautilus).

HTH

Forrest
As I'm using vmware. i dont know how to use the .iso image placed in my windows D drive. anyother option. I tried downloading nautilus browser from web, but it asks to save. When I opened it with archive manager and try to extract it , it asks for place to extract.
other thing i tried is try to run install.sh file , but it dint work
 
Old 05-01-2009, 05:24 PM   #4
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
In your vmware control page, you just need to specify the cdrom is the iso image of the install media.

HTH

Forrest
 
Old 05-01-2009, 05:35 PM   #5
kalyan1985
LQ Newbie
 
Registered: May 2009
Posts: 16

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by forrestt View Post
In your vmware control page, you just need to specify the cdrom is the iso image of the install media.

HTH

Forrest
it shows file as cd-rom: c:/programfiles/vmware/linux.iso
but the acutal iso, which i have downloaded is present in D Drive.
 
Old 05-01-2009, 05:39 PM   #6
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
You will need to change it to point to the correct file.

Forrest
 
Old 05-01-2009, 06:16 PM   #7
kalyan1985
LQ Newbie
 
Registered: May 2009
Posts: 16

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by forrestt View Post
Do you still have the install media? If so, put it in the drive and when it is mounted, run the command:

sudo yum install `find /media -name yum\*.rpm`

After that you can run

sudo yum reinstall <pkgname>
or
sudo yum install <pkgname>

where <pkgname> is the name of a package you would like to reinstall (e.g. nautilus).

HTH

Forrest
I have mounted CDROM and i can see the files of cdrom

but when i ran this command i get the following errors:

sudo yum install `find /mnt/cdrom yum*.rpm`
find: `yum*.rpm': No such file or directory
CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum.conf


if you dont mind can you explain me about sudo yum install `find /mnt/cdrom yum*.rpm` command
 
Old 05-01-2009, 06:25 PM   #8
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
sudo (run with root priveleges)
yum (command to manage software in Fedora)
install (parameter to the yum command to tell it you want to install software)
find (command in Linux/Unix that will traverse a directory structure looking for files)
/mnt/cdrom (starting point of find's search)
NOW, THIS IS IMPORTANT!!!!!
yum\*.rpm (Notice the '\' YOU NEED IT OR THE COMMAND WILL NOT WORK).
Also, you left off the '-name' parameter to find, so it doesn't know it is looking for a file "named" something (filenames are not the only thing find will search on).

The back ticks are also important. They mean "put the output of the command within the ticks here".

So, the command should be:

sudo yum install `find /mnt/cdrom -name yum\*.rpm`

But, now that I think about it, that won't work since you don't have yum installed. So, instead run:

sudo rpm -Uvh `find /mnt/cdrom -name yum\*.rpm`

HTH

Forrest
 
Old 05-01-2009, 06:35 PM   #9
kalyan1985
LQ Newbie
 
Registered: May 2009
Posts: 16

Original Poster
Rep: Reputation: 1
This dint work too...

[root@localhost cdrom]# rpm -Uvh `find /mnt/cdrom -name yum\*.rpm`
rpm: no packages given for install

i thought to try with -i option but no use :
[root@localhost cdrom]# rpm -ivh `find /mnt/cdrom -name yum\*.rpm`
rpm: no packages given for install
[root@localhost cdrom]#
 
Old 05-01-2009, 06:38 PM   #10
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
OK, run the command "mount" and post the output here.

Forrest
 
Old 05-01-2009, 06:44 PM   #11
kalyan1985
LQ Newbie
 
Registered: May 2009
Posts: 16

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by forrestt View Post
OK, run the command "mount" and post the output here.

Forrest
# mount

/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
gvfs-fuse-daemon on /home/kalyan/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=kalyan)
/dev/sr0 on /mnt/cdrom type iso9660 (ro)
 
Old 05-01-2009, 06:46 PM   #12
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
OK, how about: find /mnt/cdrom -name yum\*.rpm
 
Old 05-01-2009, 06:49 PM   #13
kalyan1985
LQ Newbie
 
Registered: May 2009
Posts: 16

Original Poster
Rep: Reputation: 1
It displays nothing, why? not even error msg

[root@localhost cdrom]# find /mnt/cdrom -name yum\*.rpm
[root@localhost cdrom]# find yum\*.rpm
find: `yum*.rpm': No such file or directory
[root@localhost cdrom]# find /mnt/cdrom -name yum\*.rpm
[root@localhost cdrom]# find -name yum\*.rpm
[root@localhost cdrom]# pwd
/mnt/cdrom
[root@localhost cdrom]#
 
Old 05-01-2009, 07:07 PM   #14
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
OK, try "ls /mnt/cdrom"

Forrest
 
Old 05-01-2009, 07:11 PM   #15
kalyan1985
LQ Newbie
 
Registered: May 2009
Posts: 16

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by forrestt View Post
OK, try "ls /mnt/cdrom"

Forrest
;([root@localhost cdrom]# ls -la /mnt/cdrom)
[root@localhost cdrom]# lsl
total 38
dr-xr-xr-x 5 root root 2048 2008-11-19 14:18 .
drwxr-xr-x 4 root root 4096 2009-05-01 18:06 ..
dr-xr-xr-x 3 root root 2048 2008-11-19 14:17 EFI
-r--r--r-- 1 root root 18363 2008-11-19 14:18 GPL
dr-xr-xr-x 2 root root 2048 2008-11-19 14:17 isolinux
dr-xr-xr-x 2 root root 2048 2008-11-19 14:18 LiveOS
-r--r--r-- 1 root root 7541 2008-11-19 14:18 README
 
  


Reply

Tags
browser, uninstall


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum uninstalled my network software.. bdaedalus359 Linux - Software 7 08-11-2008 02:10 AM
Accidentally uninstalled yum skibler1223 Linux - Software 2 02-17-2008 09:16 PM
rpm uninstalled by mistake avijitp Red Hat 3 01-13-2007 08:19 PM
Uninstalled Yum, How to re-install? saquib Fedora 13 04-12-2006 10:15 AM


All times are GMT -5. The time now is 03:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration