LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-12-2018, 10:42 PM   #1
steelheat
Member
 
Registered: Jun 2006
Location: Western US of A
Distribution: Kubuntu20.04,Debian 9,10,11,#419541 wRegistered user ith the Linux Counter
Posts: 86

Rep: Reputation: 7
Problem::Remove/uninstalled, in some instances leaves a "vase quality" of folder/files behind!


You are welcome to move this post to where you think it belongs, I couldn't fits it into any other category!

Back in 02 when my screen stayed so blue(after 20+ years I still can't stand saying the dang name w i n d o zzzzzzzzs, my butt hurts like I'm still getting kick!) I used a program(can't remember the programs name!) that did all of this before and after an install/uninstall. All I had to do
was chase down the left behind files and delete them.

I'm using Debian 9.0.5

A little help please!
I would like to be able to do the samething in Linux that I did in w i n d o zzzzzzzzs!

I want to make sure when I have a program removed/uninstalled that it and all it's files and everything it created while installed are completely removed when uninstalled! Over time I've found that remove and uninstall don't necessarily remove everything, in some instances a "vase quality" of folder/files are left behind!

To accomplish this:

First, I'm looking for a program that (that can do all of this or)can make a copy of the system before installing any new programs. After the install, if I decided that I don't want to keep it or don't like the program, I then uninstall it.

After the uninstall I then run the program again and it reports what has not been removed or the state of the system so it can be compared to the copy of the system taken before the software was installed?

Or...

Secondly, Where can I find the command line commands that I can run to do what I just described above. Say... a command to copy the system before the install. Then, after I uninstall the software I just installed, I run the same command again and then compare the two copies to see what was left on the system after the uninstall?

Yea, I know, it even sound confusing, even to me!

This is "IT" in a nut shell::

a- A command line command or program to copy the whole system and save it for later

b- Install new software, decide to keep or uninstall it

c- Decision was made to dump new software and I uninstall it

d- Run same command as in "a" above and make second copy of the system and save it

e- Do a comparison of both save system copies to see if folders/files were left by uninstall



If nothing else, maybe direct me to where similar posting are posted?

Thks for any help or directions at all!sh
 
Old 10-13-2018, 02:56 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,808
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
You might want to investigate the snapshotting capabilities of the BTRFS filesystem, which is standard in recent releases of openSUSE.
 
1 members found this post helpful.
Old 10-13-2018, 06:32 AM   #3
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Consider using Timeshift to make system snapshots.
 
1 members found this post helpful.
Old 10-14-2018, 05:45 PM   #4
steelheat
Member
 
Registered: Jun 2006
Location: Western US of A
Distribution: Kubuntu20.04,Debian 9,10,11,#419541 wRegistered user ith the Linux Counter
Posts: 86

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by hydrurga View Post
Consider using Timeshift to make system snapshots.
Thks hydruraga, I have searched pages waiting to be read as I type on Timeshift along with mrmazda's BTRFS filesystem suggestion. Already, both looks like what I've been looking for hopefully. Thks again.sh
 
Old 10-14-2018, 05:51 PM   #5
steelheat
Member
 
Registered: Jun 2006
Location: Western US of A
Distribution: Kubuntu20.04,Debian 9,10,11,#419541 wRegistered user ith the Linux Counter
Posts: 86

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by mrmazda View Post
You might want to investigate the snapshotting capabilities of the BTRFS filesystem, which is standard in recent releases of openSUSE.
Thks mrmasda, I'm checking out snapshots as I post and hopefully I'll have something to come back and comment on later on. Thks again!sh
 
Old 10-14-2018, 06:59 PM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
you can utilize two commands to remoe left over derectory and files
Code:
rmdir # if dir not empty it will not delete it
rm -r # will remove dir and everything in it, use with caution.
you have to know how to use path to statements.
 
  


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
[SOLVED] Script to remove lines in a file with more than "x" instances of any character ? pissed_budgie Programming 12 10-08-2010 08:16 PM
remove folder above the file if that contains "failure" martino4262 Programming 5 10-31-2007 03:34 PM
uninstalled "dpkg" used --force-remove-essential how to reinstall deepclutch Debian 6 12-29-2006 12:09 PM
remove folder that stats with a "special" character mago Linux - General 3 06-27-2006 04:40 PM
kmail "could not remove folder" errors GoBillsBN Linux - Software 1 08-03-2005 07:58 PM

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

All times are GMT -5. The time now is 06:35 PM.

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