Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to backup my application setup files.(source packages)

So can anybody please help me find the location where these setup files are stored in Ubuntu Natty Narwhal.

share|improve this question
    
@enzotib thanks for editing Q –  CoolEulerProject Sep 24 '11 at 9:44
add comment

3 Answers

up vote 3 down vote accepted

From the comment to @DannyStaple I understand you look for different information.

If you want to know where apt-get download the (unpacked) packages you install, have a look in

/var/cache/apt/archives

This directory could become very big, so feel free to remove the content by hand, or preferably by issuing the command

sudo apt-get clean

Moreover, if you want to know were are the files unpacked from the package you installed, the following command give you the list

dpkg -L package-name

In particular, appending | grep /bin/ will show only the real program(s), and | grep /man/ or | grep /doc/ will show the manual pages or the documentation files.

As a last note, there is no need to backup installed packages, they could be simply reinstalled from repos.

If you do some modification to system configuration files (those residing in /etc), backup only them. User configuration files reside in hidden files and directories in your home, so a home backup is enough.

share|improve this answer
    
Thanks a ton....more than my question intended Great answer.... –  CoolEulerProject Sep 24 '11 at 20:13
add comment

Most apps will store personal settings in what are known "dotfiles". These are in your home directory, normally under ".appname" - that is the app name, preceeded by a dot. Sometimes this will be the name of a particular library the app uses instead. Some apps store them under gnome or kde configuration directories that are also dotfiles in your home directory.

The safest thing here is to back up your home directory, and if you know there are large files you don't want, such as media files, then you can exclude them.

Server apps (like apache, mysql, sshd) are quite different - but I will assume for now that you mean user apps.

share|improve this answer
    
thanks but I needed location of the source packages downloaded by Ubuntu software center, and apt-get install command –  CoolEulerProject Sep 24 '11 at 12:09
    
cool - looks like I didn't get the intent of the question. I think the answer above from enzotip looks good though. –  Danny Staple Sep 24 '11 at 14:25
add comment

You can use an application called APTOnCD to create a backup of all the applications you have installed. It's in the Ubuntu repos and you should be able to find it in the Ubuntu Software Center.

enter image description here

share|improve this answer
    
hey thanks, Its what I wanted,but do U know where these packages are located.... –  CoolEulerProject Sep 24 '11 at 12:10
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.