LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-22-2007, 10:28 PM   #1
kunalghosh
LQ Newbie
 
Registered: Mar 2007
Distribution: suse linux 9.1,xubuntu
Posts: 29

Rep: Reputation: 15
Unhappy how to backup softwares downloaded through synaptic


i have recently managed to install xubuntu 6.10 from a live CD
and have installed a few necessary softwares through synaptic
as the default ones were very few...
1.is there any method to save
or backup the installed softwares so that i can install them later
incase my system crashes and i need to install xubuntu again....
2.will i be able to use the backup incase i upgrade my existing installation to xubuntu 7.04
 
Old 08-23-2007, 12:53 AM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
When I do a fresh install, I open synaptic and go to settings/preferences/files and change the radio button to Leave all downloaded packages in cache, and hit the Delete cached package files button to empty the cache because all packages installed off the CD/DVD are in the cache and I don't need to back them up. Then, after installing downloaded packages, I use a super user file browser and select all the newly downloaded files in /var/cache/apt/archives (except the partial folder and lock file) and transfer them over to a backup folder in my shared data drive. If I ever need to install them in another installation, I link them to the cache of the other installation rather than move them there for installation, synaptic will install them from the data partition.
Don't know if they can be used in Xubuntu 7.04, I just installed Ubuntu 7.04 yesterday and have not played with it yet.
 
Old 08-24-2007, 09:46 AM   #3
kunalghosh
LQ Newbie
 
Registered: Mar 2007
Distribution: suse linux 9.1,xubuntu
Posts: 29

Original Poster
Rep: Reputation: 15
with reference to the above post how do i link the "debs" to the cache rather than copy them there for installation....
 
Old 08-24-2007, 10:37 AM   #4
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
I have Debian with KDE desktop, so I have super user file browser. I open two super user browsers and navigate to /var/cache/apt/archives in one of them, I navigate to my backup folder in my data partition where all the debs are in the other file browser where I "Select All" via the Edit menu and drag and drop them to the archives file browser, a menu shows up asking if I want to Move, Copy, or Link the files there where I select "Link files" so I don't end up writing over 1GB of data in my / partition, because I keep everything I download. This helps keep my data partition small because I make backup images of it on a regular basis.
There is a different way to use local files, information regarding the Apt way can be found in section 2.2 of the Apt Howto.

Last edited by Junior Hacker; 08-24-2007 at 10:38 AM.
 
Old 08-24-2007, 11:54 AM   #5
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
I wouldn't bother saving the actual install files.. I would save a LIST of everything installed on your system..

dpkg --get-selections > myprograms.txt

That will create a list of all the packages on your system and save it in a file called myprograms.txt.
Copy that file somewhere safe. if you ever need to reinstall your system from scratch you would do a basic install of ubuntu. Then you would copy that file to the system and issue the following command

dpkg --set-selections < myprograms.txt



then do the following
aptitude update
apt-get dselect-upgrade
aptitude keep-all


and the additional software should be installed, just like your original system. you will of course still have to do the manual configurations and tweaks for some packages, but at least they will all be there.

Last edited by farslayer; 08-24-2007 at 11:59 AM.
 
Old 08-24-2007, 11:38 PM   #6
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
Quote:
Originally Posted by farslayer View Post
I wouldn't bother saving the actual install files.. I would save a LIST of everything installed on your system..

dpkg --get-selections > myprograms.txt

That will create a list of all the packages on your system and save it in a file called myprograms.txt.
Copy that file somewhere safe. if you ever need to reinstall your system from scratch you would do a basic install of ubuntu. Then you would copy that file to the system and issue the following command

dpkg --set-selections < myprograms.txt



then do the following
aptitude update
apt-get dselect-upgrade
aptitude keep-all


and the additional software should be installed, just like your original system. you will of course still have to do the manual configurations and tweaks for some packages, but at least they will all be there.
You talk like you're on high speed internet or something.
I have images of all my OS's before software is added, they also get updated, those images get used and my needs are not habitual where I need the system exactly as it was before. Software is only installed when needed, I learned this lesson from Microsoft where if you load it up, you bloat it up, and slow it down. I'm admittedly male by gender, which means I love speed.
No fat!
 
Old 08-24-2007, 11:45 PM   #7
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
of course I have high-speed internet.. I think I would go into withdrawal if I had to go back to dial up.... **shudder**
 
Old 08-25-2007, 12:33 AM   #8
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
Quote:
of course I have high-speed internet.. I think I would go into withdrawal if I had to go back to dial up.... **shudder**
Good one.
I guess, I really have no real excuse now that some outfit finally came into the woods and is now offering satellite internet access. Won't be long I'll be "with the times", just a matter of swallowing hard and re-adjusting the budget to fit it in, (give it half a year or so).
 
Old 08-25-2007, 10:42 AM   #9
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
I've read that some of the satellite ISP's put a cap on bandwidth each month, and once you hit that cap by downloading x amount of data, they throttle you back to an insanely low speed. So read the contract closely before switching, we all know that when it comes to contracts, What the large print giveth, the small print taketh away...
 
Old 08-25-2007, 02:55 PM   #10
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
Thanks for the tip.
 
  


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
Getting Synaptic to load files not downloaded by itself Meteorswarm Linux - Newbie 5 03-24-2007 11:29 PM
Where can I find the downloads which have been downloaded by synaptic? abhishekp Ubuntu 1 02-09-2006 02:21 PM
Using Synaptic.......but where are the downloaded files stored? Crasherz Linux - Newbie 3 08-26-2005 08:39 AM
Can't install downloaded programs with Synaptic. atko Linux - Software 1 07-06-2004 08:27 AM
installing already downloaded RPMs with Synaptic Grimsdyke Linux - Software 4 09-18-2003 01:11 PM


All times are GMT -5. The time now is 11:01 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration