dpkg -s
एक तर्क के रूप में एक फ़ाइल नाम, फ़ाइल या प्रोग्राम नहीं लेता है। (कई मामलों में, एक कार्यक्रम पैकेज है कि यह प्रदान करता है के रूप में एक ही नाम होगा।)
उदाहरण के लिए, मेरे Ubuntu प्रणाली, dpkg -s gcc
प्रिंट पर:
Package: gcc
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 64
Maintainer: Ubuntu Developers <[email protected]>
Architecture: i386
Source: gcc-defaults (1.98ubuntu3)
Version: 4:4.5.2-1ubuntu3
Provides: c-compiler
Depends: cpp (>= 4:4.5.2-1ubuntu3), gcc-4.5 (>= 4.5.2-1~)
Recommends: libc6-dev | libc-dev
Suggests: gcc-multilib, make, manpages-dev, autoconf, automake1.9, libtool, flex, bison, gdb, gcc-doc
Conflicts: gcc-doc (<< 1:2.95.3)
Description: The GNU C compiler
This is the GNU C compiler, a fairly portable optimizing compiler for C.
.
This is a dependency package providing the default GNU C compiler.
Original-Maintainer: Debian GCC Maintainers <[email protected]>
एक CentOS प्रणाली पर, rpm -q gcc
प्रिंट:
gcc-4.1.2-50.el5
यह अधिक से अधिक जानकारी के रूप में मुद्रित नहीं है, लेकिन अगर आप कर रहे हैं जाँच कर रहा है एक पैकेज इंस्टॉल हो, यह ठीक होना चाहिए। अगर आपको अधिक जानकारी या अन्य विकल्पों की आवश्यकता है, man rpm
; अन्य प्रश्न उपलब्ध हैं।
यदि rpm -q snmpd
package snmpd is not installed
प्रिंट करता है, तो शायद यह केवल आपको आवश्यक जानकारी है।
dpkg -s
और rpm -q
तदनुसार बाहर निकलने की स्थिति सेट करें, पैकेजिंग स्थापित नहीं होने पर रिपोर्टिंग विफलता सेट करें।
स्रोत
2011-09-05 03:59:24