User Tools

Site Tools


packages:package_dependencies

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
packages:package_dependencies [2016/07/01 15:00] peterpackages:package_dependencies [2019/12/01 11:53] (current) – removed peter
Line 1: Line 1:
-====== Packages - Find Package Dependencies ====== 
- 
- 
-<file bash> 
-#!/bin/bash 
-# 
-# Recursively show dependencies of packages. 
- 
-pkgdep() { 
-  apt-cache depends --installed $1 | awk -F\: '{print $2}' | grep -v -e '<' -e '>' | awk 'NF' 
-} 
- 
-for i in $(pkgdep $1); do 
-  pkgdep $i 
-done | sort -u 
-</file> 
- 
- 
-Save and **chmod +x**.  Execute with one package as parameter. 
- 
-If you also want non-installed packages shown, remove the **<nowiki>--installed</nowiki>** parameter. 
- 
-Example: 
- 
-<code bash> 
-dep.sh bash 
-  bash 
-  debconf 
-  debianutils 
-  dpkg 
-  initscripts 
-  libc6 
-  libc-bin 
-  libgcc1 
-  libncurses5 
-  locales 
-  multiarch-support 
-  sensible-utils 
-  tzdata 
-</code> 
- 
  
packages/package_dependencies.1467385240.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki