Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to check if a particular directory (like /usr/kde) was created and is currently managed by apt-get. How can I do that?

share|improve this question
up vote 0 down vote accepted

Apt is a front end to your real package manager. Typically dpkg on a GNU/Debian derived systems (such as Ubuntu). In this case you should use:

dpkg -S /usr/kde

But in other systems such as PCLinuxOS, apt is used to manage rpm pakcages. In this case the command is:

rpm -qf /usr/kde
share|improve this answer
Thanks, works perfect. And wow, learned something new, I never knew that apt-get can also be used on RPM based systems, I always thought it is very closely related to dpkg and in any case Debian-only (or any Debian derivate). – Albert Aug 8 '10 at 16:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .