LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-14-2005, 07:02 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
A question on Yum


Hi folks,

FedoraCore3

If on removing a package-A with
# yum remove package-A

After finish it is recognised that some other packages also removed together. Is there a "RESTORE" command to rescue. Re-install the deleted package-A could not solve the problem which would not re-install all other deleted packages automatically.

TIA

B.R.
satimis
 
Old 06-15-2005, 08:33 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
There is no restore option that I'm aware of but, using the example you posted at other places, I would put the info in a file and fix it up abit with this command:
Code:
cat file.txt |awk -F. '{print$1}'|tr '\n' ' ' >file1.txt
Then, I would do a batch yum install like this.....
Code:
yum install NetworkManager-gnome SDL SDL_mixer SDL_mixer-devel alsa-lib-devel \
alsa-utils arts control-center desktop-printing dia eel2 eog esound \
evolution evolution-data-server evolution-webcal file-roller \
firefox firstboot gaim gconf-editor gdm gedit ggv gimp gimp-data-extras \
gimp-gap gimp-help gimp-print-plugin gnome-applets gnome-desktop \
gnome-keyring-manager gnome-media gnome-netstatus gnome-panel \
gnome-pilot gnome-python2 gnome-python2-bonobo gnome-python2-canvas \
gnome-python2-gtkhtml2 gnome-session gnome-spell gnome-system-monitor \
gnome-terminal gnome-utils gnome-volume-manager gnomemeeting gnopernicus \
gok gpdf gstreamer-plugins gthumb gtkhtml3 hwbrowser \
iiimf-gnome-im-switcher k3b kde-i18n-Chinese kde-i18n-Chinese-Big5 \
kdeaddons kdeartwork kdebase kdegraphics kdelibs kdemultimedia kdenetwork \
kdepim kdeutils krb5-auth-dialog libbonoboui libgail-gnome libgal2 \
libgnome libgnomeui memprof nautilus nautilus-cd-burner nautilus-media \
openh323 openoffice openoffice openoffice planner pwlib rhn-applet \
rhythmbox sound-juicer system-config-httpd system-config-network \
system-config-packages system-config-printer-gui system-config-soundcard \
timidity++ up2date-gnome vino xsane-gimp yelp timidity++ evolution \
evolution-data-server evolution-webcal vino
But really, there is nothing better than a recent backup image.
 
Old 06-15-2005, 11:11 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi homey,

Tks for your advice.

Quote:
Code:
cat file.txt |awk -F. '{print$1}'|tr '\n' ' ' >file1.txt
It is an interesting command line to me. I suppose 'file1' being the file with the printout on the terminal copied to it. I never used
Utility Commands
gawk - pattern scanning and processing language
and
User Command
tr - translate or delete characters
before

Quote:
Then, I would do a batch yum install like this.........
There will be a problem in my case. I did try doing batch yum install some packages including version number, not all deleted packages together. Some went throught and another complained saying that not matched. Then I ran yum install package, one by one, including verson number first. Some of them worked without complaint and another complained not matched. I ran another yum install problem package without version number but still complained saying "not install". In fact those packages have not been removed. Therefore I yum install the delete packages, one by one.

Quote:
But really, there is nothing better than a recent backup image.
Yes, I agree. I did this practice before using CD-RW. However later I discovered that after restore some working documents disappeared. Besides it needs 10+ CD-RW taking lengthy time to run backup. I stopped this practice later.

Previously I ran
rpm -e package

without much problem but leaving dependencies behind. Therefore I started using yum remove. I think after this incident I'll resume running 'rpm -e package' again in case of need.

B.R.
satimis
 
Old 06-15-2005, 01:09 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
How about making a partition on a second hard drive and booting up with a livecd like knoppix, then using partimage to save an image on that new partition?
 
Old 06-15-2005, 08:50 PM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi homey,

Tks for your advice.

In rare case a Linux or Unix (FreeBSD) box will break down. This is my experience ever since I turned away from M$Windows about 3~4 years ago. Except a Linux/Unix box for testing purpose such like this PC in problem which is not for production. This box has been repartitioned paving way to build LFS and then a LiveCD from the same.

A week ago a company invited me to participate a Webminer, requesting participants running M$Livemeeting. I tried to find out whether Gnomemeeting can be used instead. Because this is a testing box without sound. So I began to setup the sound server on this box to configure the onboard sound card and coming to the problem mentioned in this thread. That is the whole story.

Quote:
How about making a partition on a second hard drive and booting up with a livecd like knoppix, then using partimage to save an image on that new partition?
I run Knoppix CD for rescue purpose, only data. Afterwards I'll make a fresh installation except to find out the cause of collapse in order to learn.

Whether you suggest to get a slave hard drive for holding the image. Would RAID 1, redundancy, be a better solution? I have a RAID card, 0, 1 and 0+1 software RAID, on the shelve not in use. But 2 things I could not resolve whether one hard drive in redundancy breaks down another hard drive also affected. Another is whether hard drives of different size and specification can be used.

B.R.
satimis

Last edited by satimis; 06-15-2005 at 08:52 PM.
 
Old 06-15-2005, 09:14 PM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I'm not much help on raid info as I've never even used it yet. I do abit of poking and experimenting on various distros and a recent image is quite handy for those oops type of situations.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum question: How to update from backed up yum cache? Arodef Linux - Software 2 02-02-2010 11:42 PM
Yum question eagle63 Linux - Newbie 3 09-19-2005 03:20 PM
yum question! mumux Linux - Software 2 07-01-2005 06:24 AM
YUM question Lleb_KCir Linux - Software 3 01-18-2005 09:00 PM
Question about yum Neoslash Linux - Software 1 05-20-2004 08:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:16 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration