LinuxQuestions.org
Help answer threads with 0 replies.
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 10-16-2010, 06:58 AM   #1
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
Question Maintain Packages on New Install


I will be installing a debian based OS within the week and I want to make sure I include my current packages. I have been currently using LM 9 for awhile and have built up quite a list.(dpkg -l | wwc -l -> 2016)

I tried using remastersys and it tells me the image is toooo big.

I have not decided which distro but have narrowed down to ->

LM 9 (same)
Debian (64 Bit) or LM Debian (only 32 bit though)
Dream Linux (Only 32 bit though)
Ultimate 2.7 (64 bit)

Is there any easy way to port them over ?

Can it be as simple as this ?

dpkg -l>Package_List (Current System)
sudo aptitude install<Package_List (On New system after install)

I already have a data back up plan and key configuration files.

All input welcome.

Thank You
 
Old 10-16-2010, 07:26 AM   #2
cargod_hera
LQ Newbie
 
Registered: Apr 2010
Location: Dallas, TX
Distribution: Simply MEPIS, OpenArtist, Ubuntu 10.04, Mint, Elive, Epidemic, Kongoni, Anibus, BackTrack4
Posts: 29

Rep: Reputation: 2
I believe LM9 refers to Mint, correct?

I think the complete steps that you need in order to re-install your current list of packages is this one http://ubuntuforums.org/showthread.php?t=895815 from Ubuntu Forums.

Since Mint is Debian-based, I think all of the commands should work just the same.
 
Old 10-16-2010, 08:05 AM   #3
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Original Poster
Rep: Reputation: 103Reputation: 103
Question

Perfect. I will give it a shot.

Thanks for the direction. I integrated this into my back up script that I run a few times a week. Am I missing any other key files that I should grab before a reinstall ? (The data should be all set).

Thanks again for the response.

Quote:

#! /bin/bash

# Redundancy of Data : Data, Package List , Key Config Files.

touch /home/joe/System-Logs/Current_Packages
dpkg --get-selections | grep -v deinstall >> /home/joe/System-Logs/Current_Packages
touch /home/joe/System-Logs/Back_UP_Record
date > /home/joe/System-Logs/Back_UP_Record
echo "************************************************************************" >> /home/joe/System-Logs/Back_UP_Record
ls /home/joe/ -lhR >> /home/joe/System-Logs/Back_UP_Record
echo "************************************************************************" >> /home/joe/System-Logs/Back_UP_Record
ls /media/DDD-Show/ -lhR >> /home/joe/System-Logs/Back_UP_Record

crontab -l> /home/joe/Documents/Config.bak/Current_Crontab
cp -uv /etc/apt/sources.list /home/joe/Documents/Config.bak/
cp -uv /etc/bash.bashrc /home/joe/Documents/Config.bak/
cp -uv /etc/samba/smb.conf /home/joe/Documents/Config.bak/
rsync -av -t --delete /home/joe/ /media/Archive/joe/
rsync -av -t --delete /media/DDD-Show/ /media/Archive/DDD-Show/

 
  


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
How do you guys maintain packages from Robby, Eric, and others? agi93 Slackware 11 07-01-2010 05:21 PM
Linux Easy To Install And Maintain As Compared To Windows rockaway Linux - General 6 04-01-2008 01:41 PM
The fastest/zippiest, newest, easiest install/maintain, fullest (qlty sftwr) distro? SoccerballTux Linux - Distributions 8 10-13-2004 03:14 AM
Mandrake Update/Install Packages/Remove Packages wslyhbb Mandriva 2 03-15-2004 10:43 AM
How hard is it to install/maintain Slackware? jimdaworm Slackware 20 09-28-2003 07:20 AM


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