How to interrogate my system after success with Apache and other stuff?

Asked by george_rutkay on 2008-06-27

Finally I've had some success in getting a web server up and running with Apache2, MySQL and PHP installed on my machine, just with the desktop edition of Ubuntu 7.10.

It's hosted from my little Dell optiplex GX260 and my cable internet connection. The purpose - I want to figure all of this out so I can help them at the farm set up their own website for their business (Shitake and Blue Oyster mushrooms - YUM!).

It's been a nasty 3 weeks wrestling with this stuff and the folks on the mailing list were very helpful!

Now I want to upgrade my system now to 8.04 and I plan to do that on this upcoming long weekend (first I need to back up about 60 gig of stuff, including the kid's stuff).

I NEED to interrogate my system so I know exactly what packages have been installed - and then print this list on paper so when I wipe the drive and set up 8.04, I can apt-get install all of the stuff I need to (Paper is a wonderful technology, it is EMP proof, ESD proof and requires no backup power!)

Also I need to know, the package names for stuff relating to PHP, MySQL and Apache 2 - are the package names the same between 7.10 and 8.04?

How do I interrogate my system so I can print up (hopefully a categorized) list of what's been installed and print it in a nice formatted manner?


Question information

English Edit question
Ubuntu apache2 Edit question
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Last query:
Last reply:
Revision history for this message
Jensen Somers (jsomers) said :

You can do this by using "dpkg -l". (That is a lower case L.)

$ dpkg -l > packages.txt
This will create a text file called "packages.txt" with all the information you need.

Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :

I think is better to filter only installed packages, open a terminal and type:

dpkg -l | grep -i ii > /tmp/installed_on_710.txt

Hope this helps

Revision history for this message
george_rutkay (yaktur) said :

Awesome!! I just changed the last part to > /home/geo/Desktop/installed_on_710.txt and it worked perfectly!

I hate fishing through folders, I prefer everything of importance in front of me on the dekstop.


Revision history for this message
george_rutkay (yaktur) said :

Thanks marcobra, that solved my question.