(10)linux GNU c library

晨曦之光 发布于 2012/03/09 14:14
阅读 227
收藏 0

本博客(http://blog.csdn.net/livelylittlefish)贴出作者(三二一@小鱼)相关研究、学习内容所做的笔记,欢迎广大朋友指正!

 

linux GNU c library

 

· 搜索GNU c library文件:apt-cache search GNU c library

root@yu28:/# apt-cache search GNU c library | grep glibc
glibc-doc - GNU C Library: Documentation
glibc-source - GNU C Library: sources

 

 

· 显示库详细信息:apt-cache show pkgname

root@yu28:/# apt-cache show glibc-doc
Package: glibc-doc
Priority: optional
Section: doc
Installed-Size: 8624
...

 

 

· 查看库安装信息:dpkg -L pkgname

root@yu28:/# dpkg -L glibc-doc
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/glibc-doc
/usr/share/doc/glibc-doc/html
/usr/share/doc/glibc-doc/html/libc.html
...


· 显示所有库的信息:apt-cache dump

root@yu28:/# apt-cache dump
Using Versioning System: Standard .deb
Package: snort-rules-default
Version: 2.7.0-14
File: /var/lib/apt/lists/ubuntu.cn99.com_ubuntu_dists_hardy_universe_binary-i386_Packages
Depends: adduser 3.11
Depends: debconf 0.2.80
Depends: debconf-2.0 (null)
Depends: syslogd (null)
Depends: system-log-daemon (null)
Depends: snort 2.2.0
Depends: snort-pgsql 2.2.0
Depends: snort-mysql 2.2.0
Depends: oinkmaster (null)
Description Language:
File: /var/lib/apt/lists/ubuntu.cn99.com_ubuntu_dists_hardy_universe_binary-i386_Packages
MD5: c68952add1fbb98ee9ae3b693e3cb6e9
... 

 

 

· 显示某个软件包的全面信息:apt-cache showpkg pkgname


root@yu28:~# apt-cache showpkg glibc-doc
Package: glibc-doc
Versions:
2.7-10ubuntu4 (/var/lib/apt/lists/ubuntu.cn99.com_ubuntu_dists_hardy-updates_main_binary-i386_Packages) (/var/lib/dpkg/status)
Description Language:
File: /var/lib/apt/lists/ubuntu.cn99.com_ubuntu_dists_hardy-updates_main_binary-i386_Packages
MD5: 14938a4bdcbc4454955a68ada81ab675

2.7-10ubuntu3 (/var/lib/apt/lists/ubuntu.cn99.com_ubuntu_dists_hardy_main_binary-i386_Packages)
Description Language:
File: /var/lib/apt/lists/ubuntu.cn99.com_ubuntu_dists_hardy_main_binary-i386_Packages
MD5: 14938a4bdcbc4454955a68ada81ab675

...  


原文链接:http://blog.csdn.net/livelylittlefish/article/details/4488055
加载中
返回顶部
顶部