Re install previous packages and remove unnecessary?

Posted January 24, 2013 2.8k views
Hi, I am new to digitalocean and moving from another VPS provider. I want to know that how can I install all packages from my previous ubuntu VPS, I have got a list using dpkg --get-selections, and installed them using apt-get dselect-upgrade but I want to remove all the packages which arent there in the list (which came pre installed with the OS) is there any way to do this? And is it safe to do it? I'm using Ubuntu 12.04 on my digitalocean server.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers
Okay, I have found a solution to this problem, please close the topic :)
Sorry missed this question glad that you were able to find your solution =]
Can you point to directions on how you managed to remove the built in ones?