LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-27-2013, 05:15 AM   #1
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291

Rep: Reputation: Disabled
How to restore my ubuntu12.10 to a previous point?


I recently installed tiger john chkrootkit. But I doubt that something I might have missed doing that and what I want now to reinstall it. But befor that I want to uninstall that or restore my system to a previous point or previous day. How to do that? I check google but wasn't clear. Also, how to do via command line? Can it be done via synaptic?
 
Old 07-27-2013, 05:37 AM   #2
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 174Reputation: 174
I don't think ubuntu has restore points, if you want to make restore point it would be better if you clone hard drive with dd command or clonezilla.
 
Old 07-27-2013, 06:56 AM   #3
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,458

Rep: Reputation: 85
Quote:
Originally Posted by yooy View Post
I don't think ubuntu has restore points, if you want to make restore point it would be better if you clone hard drive with dd command or clonezilla.
Or LVM snapshots
 
Old 07-27-2013, 07:15 AM   #4
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,458

Rep: Reputation: 85
Quote:
Originally Posted by ravisingh1 View Post
I recently installed tiger john chkrootkit. But I doubt that something I might have missed doing that and what I want now to reinstall it. But befor that I want to uninstall that...
Code:
sudo apt-get purge chkrootkit
sudo apt-get autoremove
sudo apt-get install chkrootkit
First command uninstalls the software as well as removing global configuration files. The second removes any dependency software packages that were installed along with it if any. The third installs it back again.

If you don't care about reinstalling dependency packages or removing global configuration files (This results in all settings being reset back to default), then you can use this instead.

Code:
sudo apt-get --reinstall install chkrootkit

For more info on those commands, do

Code:
man apt-get

Last edited by fakie_flip; 07-27-2013 at 06:10 PM. Reason: fixed typo made by autocorrect on android keyboard
 
1 members found this post helpful.
Old 07-27-2013, 06:17 PM   #5
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,458

Rep: Reputation: 85
Quote:
Originally Posted by ravisingh1 View Post
I want to uninstall that or restore my system to a previous point or previous day. How to do that? I check google but wasn't clear. Also, how to do via command line? Can it be done via synaptic?
Without having setup something to create "restore points" prior, you have nothing to restore. In Virtual Box, you have something called snapshots, just thought I'd mention that one too.
 
Old 07-28-2013, 01:19 AM   #6
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,283

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by ravisingh1 View Post
But befor that I want to uninstall that or restore my system to a previous point or previous day.
That is more of a Windows concept than a Linux one. Mostly because Windows seems to need this capability frequently whereas Linux does not. In Linux, just uninstall the app and its config and install it again. Done. No silly "registry" to worry about restoring/reverting like in Windows.
 
1 members found this post helpful.
Old 09-10-2013, 04:16 AM   #7
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fakie_flip View Post
If you don't care about reinstalling dependency packages or removing global configuration files (This results in all settings being reset back to default), then you can use this instead.

Code:
sudo apt-get --reinstall install chkrootkit
May I know what you mean by this (bold and italicized above). If I don't use purge and autoremove then the current settings should be there; i.e dependency packages and cofig files should be there and not removed. The above command then only installs chkrootkit. I couldn't get what you meant by 'reset back to default'.

BTW, I realized now how useful this post is as I have to refer to your this post again and again whenever I have to uninstall something.
 
Old 09-10-2013, 07:27 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866
While a normal uninstall does not remove the configuration files in /etc for that specific package, the --purge option (or if you use the purge command instead of the remove command) removes those files. Note that this is only true for configuration files in /etc, not possibly configuartion files in your /home directory.
So if you use that option and install the package again the package manager will use the default configuration files of that package.
 
1 members found this post helpful.
  


Reply


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
whether Linux as Restore option to Restore Previous Day Setting as Windows sanjay87 Linux - Newbie 2 11-12-2012 05:48 AM
Firefox - restore previous session linnyD Linux - Newbie 8 01-19-2011 07:53 AM
Which config files are needed to restore the machine to previous after a reinstall slackist Slackware 3 03-23-2009 10:46 AM
Can you restore a cron from previous day? Rustylinux SUSE / openSUSE 1 01-15-2007 06:07 PM
Restore previous kernel muldereric Linux - Newbie 4 07-30-2005 06:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration