Linux command to display package description, information, version and usage
来源:互联网 发布:淘宝客网站模板下载 编辑:程序博客网 时间:2024/06/07 20:03
Q. I’m using Linux since last one year but I’m not able to find out command which will display package description, usage, copyright information etc. Can you tell us the Linux package description command name?
A. Different Linux distribution use different command to display package information. Generally you use rpm or apt-get/dpkg commands for package management.
Task: How do I display installed packages list?
If you are using rpm based distro such as Redhat/CentOS/Suse/Fedora Linux, enter:# rpm -qa
# rpm -qa | less
If you are using apt based distro such as Debian/Ubuntu Linux, enter:# dpkg --list
Task: Display package description and other information
If you are using rpm based distro such as Redhat/CentOS/Suse/Fedora Linux use rpm command:
rpm -qi {package-name}
For example display package description, version, vendor, build date for package called mtop, enter:# rpm -qi mtop
Output:
Name : mtop Relocations: (not relocatable)Version : 0.6.6 Vendor: Dag Apt Repository, http://dag.wieers.com/apt/Release : 1.2.el4.rf Build Date: Fri 20 Jan 2006 05:40:49 PM CSTInstall Date: Wed 07 Feb 2007 07:04:54 PM CST Build Host: lisse.leuven.wieers.comGroup : System Environment/Base Source RPM: mtop-0.6.6-1.2.el4.rf.src.rpmSize : 138090 License: GPLSignature : DSA/SHA1, Fri 20 Jan 2006 05:48:51 PM CST, Key ID a20e52146b8d79e6Packager : Dag Wieers URL : http://mtop.sourceforge.net/Summary : Tool to monitor a MySQL databaseDescription :mtop (MySQL top) monitors a MySQL database showing the querieswhich are taking the most amount of time to complete. Featuresinclude 'zooming' in on a process to show the complete queryand 'explaining' the query optimizer information.
If you are using rpm based distro such as Debian/Ubuntu Linux use dpkg command:
dpkg -p {package-name]
For example display package description, version, and other information for package called zip, enter:$ dpkg -p zip
Output:
Package: zipPriority: optionalSection: utilsInstalled-Size: 248Maintainer: Santiago Vila Architecture: i386Version: 2.32-1Replaces: zip-crypt (<= 2.30-2)Depends: libc6 (>= 2.4-1)Recommends: unzipConflicts: zip-crypt (<= 2.30-2)Size: 105640Description: Archiver for .zip files This is InfoZIP's zip program. It produces files that are fully compatible with the popular PKZIP program; however, the command line options are not identical. In other words, the end result is the same, but the methods differ. :-) . This version supports encryption.
- Linux command to display package description, information, version and usage
- Linux Command To Find the System Configuration And Hardware Information
- Linux Command To Find the System Configuration And Hardware Information
- linux -df command usage
- linux find command usage
- linux shell command usage
- ss: Display Linux TCP / UDP Network and Socket Information
- How to: Display Command Information in the Status Bar在状态栏中显示命令信息
- 【DataStructure】The description and usage of Stack
- 【DataStructure】Description and usage of queue
- Database 11g: Quick Steps to Package and Send Critical Error Diagnostic Information to Support
- [Linux Command--01]: vim usage
- 8. Mac brew usage and php version
- npm package.json ~version and ^version
- Script to Collect Data Guard Primary Site Diagnostic Information for Version 10g and above(+RAC)
- Linux: Display rpm package architecture
- 10 examples to help you understand top command usage in Unix/Linux
- A solution to display Chinese(GB18030 Locale) and Japanese Fonts in Xmanager Version 2.0
- Ubuntu下配置samba实现文件夹共享
- weblogic启动异常:Parsing Failure in config.xml: javax.xml.namespace.QName; local class incompatible
- TFT -lcd 驱动
- Ubuntu_java 环境变量(使用自安装jdk,不使用默认jdk)
- Flex Tree 默认展开首节点并选中
- Linux command to display package description, information, version and usage
- 三.单纯形方法(原理)
- How to convert char array to String in Java
- Android 使用 ANT 打包 Android 应用 .
- Android 短彩信数据模型介绍
- SpringMVC配置
- javascript技巧
- 因果图法
- 冒泡排序算法