Originally posted by eantoranz
Is there an equivalent in apt-get for rpm -qf filename?
There's a command called alien
. I haven't used it a lot, so you may have to type man alien
to figure out how to use it. That command is for RPMs (as RPM is not a native file for Debian-based distros--it's alien).
If you have a .deb file, though--which is a native file--then you can do the following:
dpkg -i packagename.deb
You would need root privileges for that, of course (su or sudo).
It's always a better idea, if something's available through repositories, to use apt-get or Synaptic to install it, though.