Are you using Redhat or Debian?
If you're using Redhat (and therefore apt-rpm), you still use rpm to install individual packages.
If you're using debian then
a) You need to install from .deb package and not .rpm
b) You use 'dpkg' to install specific local package archives, not apt-get
c) You probably just want to type 'apt-get install apache'.