Linux使用技巧9--用dpkg管理你的软件
生活随笔
收集整理的這篇文章主要介紹了
Linux使用技巧9--用dpkg管理你的软件
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
dpkg(package manager for Debian): debian體系中的包管理工具。
Commands:-i|--install <.deb file name> ... | -R|--recursive <directory> ... -r|--remove <package> ... | -a|--pending1.查看已經(jīng)安裝的軟件
$ dpkg -l Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-===============================-====================-====================-==================================================================== ii account-plugin-aim 3.8.6-0ubuntu9.1 amd64 Messaging account plugin for AIM ii ack-grep 2.12-1 all grep-like program specifically for large source trees2.安裝deb格式的軟件
有時(shí)候會(huì)下載deb的軟件,如virtualbox,那么我們就能夠這樣安裝:
$ sudo dpkg -i virtualbox-4.3_4.3.26-98988~Ubuntu~raring_amd64.deb Selecting previously unselected package virtualbox-4.3. (Reading database ... 237712 files and directories currently installed.) Preparing to unpack virtualbox-4.3_4.3.26-98988~Ubuntu~raring_amd64.deb ... Unpacking virtualbox-4.3 (4.3.26-98988~Ubuntu~raring) ... Setting up virtualbox-4.3 (4.3.26-98988~Ubuntu~raring) ... Adding group `vboxusers' (GID 127) ... Done.3.查看deb的信息
-I參數(shù),查看具體信息
$ dpkg -I virtualbox-4.3_4.3.26-98988~Ubuntu~raring_amd64.deb new debian package, version 2.0.size 64750912 bytes: control archive=23332 bytes.118 bytes, 4 lines conffiles 1371 bytes, 20 lines control 58951 bytes, 641 lines md5sums 14579 bytes, 365 lines * postinst #!/bin/sh2144 bytes, 59 lines * postrm #!/bin/sh3335 bytes, 98 lines * preinst #!/bin/bash3100 bytes, 100 lines * prerm #!/bin/sh4666 bytes, 107 lines templates Package: virtualbox-4.3Version: 4.3.26-98988~Ubuntu~raringArchitecture: amd64Maintainer: Oracle Corporation <info@virtualbox.org>Installed-Size: 147848-c,查看包中的文件結(jié)構(gòu)
$ dpkg -c virtualbox-4.3_4.3.26-98988~Ubuntu~raring_amd64.deb drwxr-xr-x root/root 0 2015-03-17 02:12 ./ drwxr-xr-x root/root 0 2015-03-17 02:12 ./etc/ drwxr-xr-x root/root 0 2015-03-17 02:12 ./etc/init.d/ -rwxr-xr-x root/root 6796 2015-03-17 02:12 ./etc/init.d/vboxautostart-service -rwxr-xr-x root/root 12680 2015-03-17 02:12 ./etc/init.d/vboxdrv轉(zhuǎn)載于:https://www.cnblogs.com/mengfanrong/p/5225685.html
總結(jié)
以上是生活随笔為你收集整理的Linux使用技巧9--用dpkg管理你的软件的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 有效软件测试 - 50条建议 - 需求阶
- 下一篇: 云平台需要开发的底层功能