Can you restore your system to the way it was before removing files
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.
Can you restore your system to the way it was before removing files
I have FC-6 and use KDE.
I removed what I thought was a single file. Yum said no other files were dependent on the file. But when I removed it (in Kyum) a lot of other files and applications were removed. It really screwed up my system.
Is there a way to reverse what happened, so I could have it like nothing ever happened?
I guess you are saying you actually removed packages, rather than single files?
If you know what packages were removed, then you should be able to simply reinstall them, unless the computer no longer starts after they were removed?
Posting what you removed will also aid us in determining how extensive the damage is.
Take a look at the difference between /var/log/rpms1 and /var/log/rpms. The /var/log/rpms is the latest compilation of all rpms installed on the system, rpms1 or similar, is a compilation of all installed packages a week before rpms. Depending on how long you had Fedora, there will/may also be rpms2, rpms3, etc., they should have a date as to when they were made.
Although I've never had the chance to use rpm query, read the man pages for rpm to find how to query the dependencies of the original first package you tried to remove which also removed the dependencies, this is the best route to find what all packages were removed.
Also look at/for a log file in /var possibly called "yum.log" which may also have a record of what was installed/un-installed lately.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.