Skip to content

Ubuntu

1 post with the tag “Ubuntu”

Ubuntu dependency resolution and installation

1. Ubuntu platform package management tool apt/dpkg

Section titled “1. Ubuntu platform package management tool apt/dpkg”

dpkg is used to install .deb files, but it does not resolve module dependencies and does not care about the software in Ubuntu’s software warehouse. apt will resolve and install module dependencies and consult the software repository.

2. Check package dependencies in Ubuntuapt-cache depends XXX --recurse

Section titled “2. Check package dependencies in Ubuntuapt-cache depends XXX --recurse”

Check which packages XXX depends on, –recurse means recursive search apt-cache rdepends XXX Check which packages depend on XXX

3. Download the .deb fileapt-get install --no-recommends -d XXX

Section titled “3. Download the .deb fileapt-get install --no-recommends -d XXX”

The download file is located in the /var/cache/apt/archives/ directory apt-get download XXX The download file is the current directory

apt install *.deb
dpkg -i *.deb

Command differences reference Ubuntu platform package management tool apt/dpkg

5. sources.list file- File directory/etc/apt/sources.list- In the default sources.list file, the default configuration is the source of ubuntu.com

Section titled “5. sources.list file- File directory/etc/apt/sources.list- In the default sources.list file, the default configuration is the source of ubuntu.com”