do all_depends=$(get_all_depends $pkg) echo -e "所有依赖共计"$(echo $all_depends | wc -w)"个" echo $all_depends i=0 for depend in $all_depends do i=$((i+1)) echo -e "\033[1;32m正在下载第$i个依赖:"$depend "\033[0m" apt-get download $depend done done本文...
In turn, libreadlineg2 and libreadline2-altdev depend on libreadline2. If libreadline2 is installed, libc5 and ncurses3.0 (and ldso) must also be installed; libreadlineg2 and libreadline2-altdev do not have to be installed. For the specific meaning of the remainder of the output it ...
certain depth has been reached.apt-rdependscannot do reverse build-dependencies. This is really difficult, since it would have to load the whole cache into memory before discovering which packages depend on others to build.apt-rdependsexists. This functionality should really reside inapt-cacheitself....
// but only if its not marked by the autoremover (aptitude depend on this behavior) // or if we do automatic installation (aptitude never does it) if(P.Status == 2 || (Pkg->CurrentVer != 0 && (AutoInst == true || P.Marked == false))) P.Flags &= ~pkgCache::Flag::Auto; ...
In case you want to know what dependencies a package depends upon, use the “depend” option with the package name. apt-cache dependspackage_name For example, let’s replace the “package_name” with curl to get its details. Similarly, you can use “rdepends” (reverse dependencies) to kn...
$ apt-cache depends [package] Show packages that depend on a particular package $ apt-cache rdepends [package] SYNOPSIS apt-cache[-agipns] [-o=config_string] [-c=config_file] {gencaches | showpkgpkg... | showsrcpkg... | stats | dump | dumpavail | unmet | searchregex... | show...
# apt-cache show {{package}} 3. Show whether a package is installed and up to date: # apt-cache policy {{package}} 4. Show dependencies for a package: # apt-cache depends {{package}} 5. Show packages that depend on a particular package: ...
2. Show information about a package: # apt-cache show {{package}} 3. Show whether a package is installed and up to date: # apt-cache policy {{package}} 4. Show dependencies for a package: # apt-cache depends {{package}} 5. Show packages that depend on a particular package: ...
# apt-cache show {{package}} 3. Show whether a package is installed and up to date: # apt-cache policy {{package}} 4. Show dependencies for a package: # apt-cache depends {{package}} 5. Show packages that depend on a particular package: ...