LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Newbie questions: about Apache & RPM (https://www.linuxquestions.org/questions/linux-newbie-8/newbie-questions-about-apache-and-rpm-216896/)

tiger0516 08-12-2004 06:26 PM

Newbie questions: about Apache & RPM
 
Hi Gurus :)

I am new to Linux. I just installed Apache to my linux. However, I find there are two Apache httpd.conf files, one is under /etc/httpd/conf and one is under /usr/local/apache2/conf.

I download Apache and installed it by default, so the /usr/local/apache2 should be the directory I just installed.

Can anyone tell me what's the difference between the system default one (etc/httpd) and the one I just created and installed?

I find the configure file in the /usr/local/apache2 does not work.

Learning from FHS website, it seems /usr/local/apache2/htdocs should not be an ideal place for default WWW directory, it should be /home/somewhere, right?

Also, I want to install a new package with RPM. How can I find if the xxx.rpm is in my machine? How can I find which packages have been installed? rpm -Va?

Thanks

ksgill 08-12-2004 06:28 PM

rpm -q package.rpm
for one package and
rpm -qa
for all packages on the system.

tiger0516 08-12-2004 06:35 PM

Quote:

Originally posted by Jatt_thugz
rpm -q package.rpm
for one package and
rpm -qa
for all packages on the system.

Thanks for your help. Just use rpm -qa>list as your suggestion to get a full list of installed packages. :)

The install log (located in /root) tells me that there are lots of uninstalled packages. How can I find them? (install a package by "rpm -i package, right?) Is there any place I can download packages? Through redhat website?

Thanks


All times are GMT -5. The time now is 10:39 AM.