[QUOTE=akhund_bilal;3858800]i think i have all messed up ubuntu that will not be possible to install all the packages on the other machine
[quote]
It should not be that hard. Just get the list of packages using one of the methods I described in in my earlier post: you can put the list directly into a file with:
Code:
dpkg -l | grep ^ii | awk '{ print $2 }' > packages.txt
Then copy that file to the freshly installed machine, and on that fresh machine do:
Code:
sudo apt-get install $(cat packages.txt)
Assuming that works, you now have to copy all the .list files back to the broken machine.
On new machine
Code:
mkdir ~/listfiles
cd /var/lib/dpkg/info/
cp $(for p in $(cat packages.txt) ; do echo $p.list ; done ) ~/listfiles/
Now you have all the file you need to copy in a directory called ~/listfiles/
Next you have to copy them to your broken machine. This could be done with a usb stick or scp depending on your situation.
Quote:
|
if i reinstall all karmic then can i reinstall all the software in one go which i have installed here
|
Reinstalling is totally up to you, but you will loose anything you customized and everything in your home directory (unless it is on separate partition). Reinstalling all the packages is easy since you already have a list of them.
Evo2