Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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:
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.