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

Asked by george_rutkay

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.

http://georutkay.homelinux.org/test.php

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?

Thanks!

Question information

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

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 :
#2

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 :
#3

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.

geo

Revision history for this message
george_rutkay (yaktur) said :
#4

Thanks marcobra, that solved my question.