注册 登录
LUPA开源社区 返回首页

jiang001的个人空间 http://www.lupaworld.com/?263754 [收藏] [复制] [分享] [RSS]

我的博客

Apt-get | DPKG | YUM 使用相关简介

已有 605 次阅读2011-6-20 09:51 |系统分类:IT技术|

#1,Apt-Get


1
$ apt-get --option -o command

– This is the standard usage for the apt-get command.

1
$ apt-get -h

– Use this command to get more help.

1
--update

– This will find updates for all packages from locations listed in /etc/apt/sources.list. You should always run an update before attempting an upgrade or a dist-upgrade.

1
--upgrade

– Use this to install the newest versions of all packages. Make sure you use the update command to check your sources.list for the newest versions first.

1
--dist-upgrade

– This will upgrade your distribution to the newest version. And will also upgrade all packages in your sources.list.

1
--install

– Used this with the desired packages to install them. If you install a package that has pre-requisites or related packages apt-get will grab them for you.

1
--remove

– This will remove packages from your system.

1
--purge

– This is the same as remove but with purge you can delete configuration files also.

#2, DPKG


1
$ dpkg --option package

– This is the standard usage for the DKPG command.

1
$ dpkg -s package | grep Status

– Use this to find out if a package is installed or not.

1
$ dpkg -s package

– See if a package is installed, as well as other useful information.

1
$ dpkg -S /file

– With this option you can find out which package a file belongs to.

1
$ dpkg -S package

$ dpkg -c package.deb – This will list all files related to the package.

1
$ dpkg -C

– This will search for broken packages.

1
$ dpkg -L package

– You can use this to list the locations of files added by the chosen package.

1
$ dpkg -l

– Get a list of installed packages and a short description.

1
$ dpkg -l package

– Will list specified package with a short description.

1
$ dpkg -i package.deb

– Use this to install a package or upgrade already installed packages.

1
$ dpkg -r package

– This will remove an installed package.

1
$ dpkg -R /directory

– With this you can install all packages recursively from the specified directory.

1
$ dpkg -P package

– You can remove an installed package but leave the configuration files with the purge option.

1
$ dpkg -p package

– You can use this to get further details about a package.

1
$ dpkg -h

– Get additional help with DPKG.

#3,Yum



 已同步至 jiang001的微博

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册
验证问答 换一个 验证码 换一个

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部