]> gitweb.fluxo.info Git - debian.git/commitdiff
Feat: packaging: basics: another way to get dependencies, plus references
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 14 Mar 2025 17:01:16 +0000 (14:01 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 14 Mar 2025 17:01:16 +0000 (14:01 -0300)
docs/packaging/basics.md

index 6eafa9175eb9b117a2e5e3f410f21d1498388999..19fdb168e07bcd7b4f74d29a99db1f2519e5852e 100644 (file)
@@ -43,6 +43,15 @@ To remove:
 
     hydractl remove-dep package
 
+Another way to get dependencies:
+
+    aptitude search '!~i?reverse-depends("^package$")' -F "%p" | xargs aptitude install -y
+
+References:
+
+* [How to install only the dependencies of a package? - Ask Ubuntu](https://askubuntu.com/questions/74478/how-to-install-only-the-dependencies-of-a-package)
+* [How to list/download the recursive dependencies of a debian package? - Stack Overflow](https://stackoverflow.com/questions/22008193/how-to-list-download-the-recursive-dependencies-of-a-debian-package)
+
 ## Creating the `debian/` structure
 
 If the package wasn't debianized, proceed with