Originally Posted by davimint
It would be nice to have something like a restore point so when I do make a mistake I can boot a live cd , make a few changes, and be back going again without having to format and install again. I created a partition for just files but need help with the command and process.
I guess you need to make a script for this. But before you make a script, you must first have an idea of how the program will work.
How about making an archive of the list of files of each of the packages you installed. Note that the lists must specify which can be easily deleted and which requires modification. The files that require modification is the difficult part.
Then before making an install of the same package with a newer version, back-up the files with tar from the list then save them as package-version-#.tgz or package-version-date.tgz.
Then install the package with a new version. Save it in a list again. Then there you go. If the new package you installed made an error, you can easily delete the new files then restore the old files.
If you think the process is already correct, do this manually first. Then try to compile it little by little as a script.
I can help you make the script but I want you to help yourself too. I recommend you first read some of the basics of bash scripting:
Bash Beginner's Guide:
Advanced Bash Scripting Guide
If you're lost in the console, you can always have 'help' and 'man bash' handy.
There's also a web version of bash's manual: http://www.gnu.org/software/bash/manual/bashref.html
For the commands btw, you can use tar and find to list the files and have them backup-ed. Usually in slackware the files that make the complicated part resides in /etc. Try doing this first on packages that don't make modifications in /etc or if the files they put there are just private.
Please tell me if I'm getting the wrong idea here. Or if you still have some questions to ask.