• dpkg


    dpkg是debian最早提出的一个软件包管理工具,因为早期并没有考虑到当下软件包之间这么复杂的依赖关系,所以并不能自动解决软件包的依赖问题,这个命令多用于安装本地的.deb软件包,也可以进行软件包的维护
    $sudo dpkg [-isLrP] [软件包或软件名]
    -i package安装一个软件包
    -s name查看软件包信息
    -L name查看软件包的安装路径
    -r name卸载软件,保留配置文件
    -P name卸载软件,同时删除配置文件

    例子

    $sudo dpkg -i rxvt_1%3a2.6.4-14_i386.deb 
    Selecting previously unselected package rxvt.
    (Reading database ... 193732 files and directories currently installed.)
    Unpacking rxvt (from rxvt_1%3a2.6.4-14_i386.deb) ...
    Setting up rxvt (1:2.6.4-14) ...
    update-alternatives: using /usr/bin/rxvt-xterm to provide /usr/bin/rxvt (rxvt) in auto mode.
    update-alternatives: error: no alternatives for rclock.
    Processing triggers for man-db ...
    
    $sudo dpkg -s rxvt
    Package: rxvt
    Status: install ok installed
    Priority: optional
    Section: x11
    Installed-Size: 536
    Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
    Architecture: i386
    Version: 1:2.6.4-14
    Provides: x-terminal-emulator
    Depends: libc6 (>= 2.4), libx11-6, libxpm4
    Conffiles:
     /etc/menu-methods/rxvt b0dfbc8f0b846ed1d5021cbdcc3b872a
    Description: VT102 terminal emulator for the X Window System
     Rxvt is an 8-bit clean, color xterm replacement that uses significantly
     less memory than a conventional xterm, mostly since it doesn't support
     toolkit configurability or Tek graphics, but also since features can
     be removed at compile-time to reflect your needs.
     .
     The distribution also includes rclock, the smaller/better xclock
     replacement with appointment scheduling and xbiff functionality.
    Original-Maintainer: Jan Christoph Nordholz <hesso@pool.math.tu-berlin.de>
    
    $sudo dpkg -L rxvt
    /.
    /usr
    /usr/bin
    /usr/bin/rxvt-xterm
    /usr/bin/rxvt-xpm
    /usr/bin/rclock
    /usr/share
    /usr/share/man
    /usr/share/man/man1
    /usr/share/man/man1/rclock.1.gz
    /usr/share/man/man1/rxvt-xterm.1.gz
    /usr/share/doc
    /usr/share/doc/rxvt
    /usr/share/doc/rxvt/examples
    /usr/share/doc/rxvt/examples/example.menu
    /usr/share/doc/rxvt/examples/jedmenu.sl
    /usr/share/doc/rxvt/examples/menu
    /usr/share/doc/rxvt/examples/rxvt.menu
    /usr/share/doc/rxvt/examples/terminal.menu
    /usr/share/doc/rxvt/html
    /usr/share/doc/rxvt/html/rxvt.html
    /usr/share/doc/rxvt/html/rxvtRef-frame.html
    /usr/share/doc/rxvt/html/rxvtRef-toc.html
    /usr/share/doc/rxvt/html/rxvtRef.html
    /usr/share/doc/rxvt/BUGS
    /usr/share/doc/rxvt/README.xvt.gz
    /usr/share/doc/rxvt/README.menu
    /usr/share/doc/rxvt/xterm.seq.gz
    /usr/share/doc/rxvt/FAQ.Debian.gz
    /usr/share/doc/rxvt/changelog.Debian.gz
    /usr/share/doc/rxvt/README.Debian
    /usr/share/doc/rxvt/copyright
    /usr/share/doc/rxvt/changelog.gz
    /usr/share/doc/rxvt/FAQ.gz
    /usr/share/doc/rxvt/README.greek.gz
    /usr/share/doc/rxvt/rxvtRef.txt.gz
    /usr/share/lintian
    /usr/share/lintian/overrides
    /usr/share/lintian/overrides/rxvt
    /usr/share/menu
    /usr/share/menu/rxvt
    /etc
    /etc/menu-methods
    /etc/menu-methods/rxvt
    /usr/share/man/man1/rxvt-xpm.1.gz
    
    $sudo dpkg -r rxvt
    (Reading database ... 193765 files and directories currently installed.)
    Removing rxvt ...
    update-alternatives: using /usr/bin/rxvt-xpm to provide /usr/bin/rxvt (rxvt) in auto mode.
    Processing triggers for man-db ...
    $sudo dpkg -s rxvt
    Package: rxvt
    Status: deinstall ok config-files
    Priority: optional
    Section: x11
    Installed-Size: 536
    Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
    Architecture: i386
    Version: 1:2.6.4-14
    Config-Version: 1:2.6.4-14
    Provides: x-terminal-emulator
    Depends: libc6 (>= 2.4), libx11-6, libxpm4
    Conffiles:
     /etc/menu-methods/rxvt b0dfbc8f0b846ed1d5021cbdcc3b872a
    Description: VT102 terminal emulator for the X Window System
     Rxvt is an 8-bit clean, color xterm replacement that uses significantly
     less memory than a conventional xterm, mostly since it doesn't support
     toolkit configurability or Tek graphics, but also since features can
     be removed at compile-time to reflect your needs.
     .
     The distribution also includes rclock, the smaller/better xclock
     replacement with appointment scheduling and xbiff functionality.
    Original-Maintainer: Jan Christoph Nordholz <hesso@pool.math.tu-berlin.de>
    
    $sudo dpkg -P rxvt
    (Reading database ... 193733 files and directories currently installed.)
    Removing rxvt ...
    Purging configuration files for rxvt ...
    $sudo dpkg -s rxvt
    Package `rxvt' is not installed and no info is available.
    Use dpkg --info (= dpkg-deb --info) to examine archive files,
    and dpkg --contents (= dpkg-deb --contents) to list their contents.
    
  • 相关阅读:
    POJ 2418 Hardwood Species(STL在map应用)
    在反思性学习
    孙陪你,了解它的权力--Kinect结合的发展Unity3D游戏应用开发
    python在windows通过安装模块错误
    Linux怪哉ntfs
    Js 表单序列化
    微信开发
    Ecshop开发
    FTP配置和用户设置权限
    wget
  • 原文地址:https://www.cnblogs.com/xiaojiang1025/p/5953322.html
Copyright © 2020-2023  润新知