# 参数 install:安装rpm软件包; update:更新rpm软件包; check-update:检查是否有可用的更新rpm软件包; remove:删除指定的rpm软件包; list:显示软件包的信息; search:检查软件包的信息; info:显示指定的rpm软件包的描述信息和概要信息; clean:清理yum过期的缓存; shell:进入yum的shell提示符; resolvedep:显示...
If no package-name-pattern is given, list all packages in /var/lib/dpkg/status, excluding the ones marked as not-installed (i.e. those which have been previously purged). Normal shell wildcard characters are allowed in package-name-pattern. Please note you will probably have to quote ...
1. List all installed packages This command will list all the installed packages. The information shall be printed in a tabular format with columns for Name, version, architecture and description. The list shall be huge and you can scroll up and down. $ dpkg -l Desired=Unknown/Install/Remove...
held - List all held packages help - Show help for a command hold - Hold a package install - Install/upgrade packages list - List packages based on package names policy - Show policy settings purge - Remove packages and their configuration files recommends - List missing recommended packages fo...
dpkg-queryis a tool to show information about packages listed in thedpkgdatabase. COMMANDS -l,--list[package-name-pattern...] List packages matching given pattern. If nopackage-name-patternis given, list all packages in/var/lib/dpkg/status, excluding the ones marked as not-installed (i.e...
2. List installed packages matching a pattern: # dpkg-query --list 'libc6*' 3. List all files installed by a package: # dpkg-query --listfiles libc6 4. Show information about a package: # dpkg-query --status libc6 5. Search for packages that own files matching a pattern: ...
$ sudo apt list --installed | grep tmux 3. rpm RHEL、CentOS rpm命令是RPM软件包的管理工具。rpm原本是Red Hat Linux发行版专门用来管理Linux各项套件的程序,由于它遵循GPL规则且功能强大方便,因而广受欢迎。逐渐受到其他发行版的采用。RPM套件管理方式的出现,让Linux易于安装,升级,间接提升了Linux的适用度。
dpkg 使用文本文件作为数据库来维护系统中软件,包括文件清单, 依赖关系, 软件状态, 等等详细的内容,通常在 /var/lib/dpkg 目录下。 通常在 status 文件中存储软件状态和控制信息。 在 info/ 目录下备份控制文件, 并在其下的 .list 文件中记录安装文件清单, 其下的 .mdasums 保存文件的 MD5 编码。
grouplist 查看可能批量安装的列表 groupinstall 安装程序组 groupremove 卸载程序组 groupupdate 升级程序组 groupinfo 显示程序组信息 clean packages 清除临时包文件(/var/cache/yum 下文件) clean headers 清除rpm头文件 clean oldheaders 清除旧的rpm头文件 ...
1)执行apt-getupdate 2)程序分析/etc/apt/sources.list 3)自动连网寻找list中对应的Packages/Sources/Release列表文件,如果有更新则下载之,存入/var/lib/apt/lists/目录 4)然后 apt-get install 相应的包 ,下载并安装。 即使这样,软件源配置文件只是告知Ubuntu系统可以访问的镜像站点地址,但那些镜像站点具体都拥有...