C/C++教程

ubuntu package manager(ubuntu 包管理器)

本文主要是介绍ubuntu package manager(ubuntu 包管理器),对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

title: ubuntu package manager(ubuntu 包管理器)
author: susu
date: 2021-01-01
site:
- cnblogs.com

ubuntu 包管理器

apt-get

# update repo info
apt-get update

# search package
apt-cache search package

# fetch package information, metadata...
apt-cache show package

# download & install
apt-get install package

# erase or remove
apt-get remove package
apt-get remove package --purge


# reinstall package
apt-get install package --reinstall

# repair abnormal installation
apt-get -f install

# 安装相关的编译环境
apt-get build-dep package

# upgrade instaled packages
apt-get upgrade

# upgrade the whole system opertating system
apt-get dist-upgrade

# query package's dependency
apt-cache depends package

# query what depends this package
apt-cache rdepends package

# download package's source code
apt-get source package

# clean useless packages
apt-get clean && apt-get autoclean

# check broken dependency
apt-get check

这篇关于ubuntu package manager(ubuntu 包管理器)的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!