Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the dpkg command on Linux system

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to use the Linux system dpkg command, the article is very detailed, has a certain reference value, interested friends must read it!

dpkg is a Debian command-line tool that can be used to install, delete, build, and manage Debian packages.

Grammar:

dpkg (option)(parameter)

Options:

-i: Install packages

-r: Remove package

-P: Delete the package and delete its profile at the same time

-L: files associated with packages are displayed

- unpack: unpack packages

-c: Displays a list of files in the package

-configure: Configure the package

Parameters:

deb package

List the contents of deb packages or directory structure in files

sudo dpkg -c /var/cache/apt/archives/fdisk_2.34-0.1ubuntu9.1_amd64.deb

install software

sudo dpkg -i /var/cache/apt/archives/fdisk_2.34-0.1ubuntu9.1_amd64.deb

fdisk_2.34-0.1ubuntu9.1_amd64.deb Package downloaded to PC.

query package

dpkg -L fdisk#Query the version of the package dpkg -L fdisk#Query the files associated with the package

dpkg -s fdisk#Query package details

Displays all installed deb packages with version numbers and summary descriptions

dpkg -l

dpkg -l |grep fdisk

Remove packages

sudo dpkg -P fdisk

#Uninstall packages, leave configuration, -r leave configuration.

The above is "Linux system dpkg command how to use" all the contents of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report