On Thu, Jul 27, 2006 at 09:39:40PM +0800, Stephen Liu wrote:

> What commands on Debian equivalent to "yum list installed package_name"
> OR "rpm -qa | grep package-name" to find out whether the package has
> been installed.

  To search all packages which are installed and have the package
 name 'package':

  COLUMNS=200 dpkg --list | grep ^ii  | awk '{ print $2}' | grep ^package
  
  Or just to learn the status of one package:

  dpkg --list apache2

Steve
-- 
Debian GNU/Linux System Administration
http://www.debian-administration.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to