Sunday, April 28, 2024
137
rated 0 times [  137] [ 0]  / answers: 1 / hits: 261427  / 1 Year ago, mon, april 24, 2023, 2:39:07

How can I check dependency list for a deb package. I am running Ubuntu 11.10 and I have backed up all deb packages from var/cache/apt/archives. I want to format my pc and re-install selected applications only. Also how can I get the list of installed packages and dependencies.


More From » package-management

 Answers
2

In addition to the dpkg method, you can check the dependencies of packages in the repository:


apt-cache depends package-name

EDIT Updated with @Tino's recommendation. @Tigran's comment no longer applies.




depends VS rdepends



  • apt-cache depends package-name

    //show package-name depends on who



  • apt-cache rdepends package-name

    //show who depends on package-name




depends


$ apt-cache depends vim-runtime
vim-runtime
Breaks: vim-tiny
|Recommends: vim
vim-athena
vim-gtk
vim-gtk3
vim-nox
|Recommends: vim-gtk
|Recommends: vim-gtk3
|Recommends: vim-athena
|Recommends: vim-nox
Recommends: vim-tiny
Enhances: vim-tiny

rdepends


$ apt-cache rdepends vim-runtime
vim-runtime
Reverse Depends:
vim
vim
vim-nox
vim-gtk
vim-athena
vim-gtk3
vim
vim-nox
vim-gtk
vim-athena
vim-gtk3

[#41955] Tuesday, April 25, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
arsleyeuth

Total Points: 72
Total Questions: 121
Total Answers: 112

Location: North Korea
Member since Mon, Oct 31, 2022
2 Years ago
;