Ubuntu dependency resolution and installation¶
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¶
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¶
The download file is located in the /var/cache/apt/archives/ directory
apt-get download XXX
The download file is the current directory
4. Installation of offline .deb package```¶
apt install .deb dpkg -i .deb ``` Command differences reference Ubuntu platform package management tool apt/dpkg