urpm::orphans - The orphan management code for urpmi
Return the path of the unrequested list file.
Returns the list of potentiel files (ake files installed as requires for others)
Mark some packages as explicitly requested (usually because they were manually installed).
Returns :
req: list of installed packages that were installed as requires of others
unreq: list of installed packages that were not installed as requres of others (ie the ones that were explicitely selected for install)
pkgs: list of installed packages
unrequested: list of packages that were installed as requires of others (the sum of the previous lists)
Returns the new "unrequested" packages. The reason can be "required by xxx" or "recommended"
Returns the packages obsoleting packages marked "unrequested"
We don't want to check orphans on every auto-select. We do it only after many packages have been added.
Returns whether we should look for orphans depending on a threshold.
This function computes whether removing $toremove packages will create unrequested orphans.
It does not return the new orphans since "whatrecommends" is not available,
If it detects there are new orphans, _all_unrequested_orphans() must be used to have the list of the orphans
Return true if $pkg will no more be required after removing $toremove
nb: it may wrongly return false for complex loops, but will never wrongly return true
Return true if $prop will still be required after removing $toremove
Return the current kernel's package so that we can filter out current running kernel:
Returns list of kernels
_fast_ version w/o looking at all non kernel packages requires on kernels (like "urpmi_find_leaves '^kernel'" would)
_all_unrequested_orphans blacklists nearly all kernels b/c of packages like 'ndiswrapper' or 'basesystem' that requires 'kernel'
rationale: other packages only require 'kernel' or a sub package we do not care about (eg: kernel-devel, kernel-firmware, kernel-latest) so it's useless to look at them
Returns list of orphan kernels
Returns the list of "unrequested" orphans.
Compute the list of packages that will be unrequested and could potently be removed.
Returns the list of unrequested packages (aka orphans).
It is quite fast. the slow part is the creation of $installed_packages_packed (using installed_packages_packed())
Like get_now_orphans_msg() but more suited for GUIes, it return message about orphan packages.
Used by rpmdrake.
Similar to get_now_orphans_gui_msg() but more suited for CLI, it return message about orphan packages.
Add leading spaces to the string and return it.
Copyright (C) 2008-2010 Mandriva SA
Copyright (C) 2011-2020 Mageia
To install urpm, copy and paste the appropriate command in to your terminal.
cpanm
cpanm urpm
CPAN shell
perl -MCPAN -e shell install urpm
For more information on module installation, please visit the detailed CPAN module installation guide.