ubuntu包管理命令apt

  • apt (Advanced Package Tool) is the command-line tool for handling packages. It provides a commandline interface for the package management of the system. See also apt-get(8) and apt-cache(8)
    for more low-level command options.

  • 常用命令

    • list
      list is used to display a list of packages. It supports shell pattern for matching package names and the following options: –installed, –upgradable, –all-versions are supported.

    • search
      search searches for the given term(s) and display matching packages.

    • show
      show shows the package information for the given package(s).

    • install
      install is followed by one or more package names desired for installation or upgrading.

      A specific version of a package can be selected for installation by following the package name with an equals and the version of the package to select. This will cause that version to be
      located and selected for install. Alternatively a specific distribution can be selected by following the package name with a slash and the version of the distribution or the Archive name
      (stable, testing, unstable).

    • remove
      remove is identical to install except that packages are removed instead of installed. Note that removing a package leaves its configuration files on the system. If a plus sign is appended
      to the package name (with no intervening space), the identified package will be installed instead of removed.

    • edit-sources
      edit-sources lets you edit your sources.list file and provides basic sanity checks.

    • update
      update is used to resynchronize the package index files from their sources.

    • upgrade
      upgrade is used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list. New package will be installed, but
      existing package will never removed.

    • full-upgrade
      full-upgrade performs the function of upgrade but may also remove installed packages if that is required in order to resolve a package conflict.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值