|
Kali Linux Revealed Pdf ko'rish
|
bet | 121/174 | Sana | 15.01.2024 | Hajmi | 11,68 Mb. | | #137314 |
Bog'liq Kali-Linux-Revealed-2021-editionAdding Comments in
/etc/apt/preferences
There is no official syntax for comments in
/etc/apt/preferences
, but some textual
descriptions can be provided by prepending one or more
Explanation
fields into each
entry:
Explanation: The package xserver-xorg-video-intel provided
Explanation: in experimental can be used safely
Package: xserver-xorg-video-intel
Pin: release a=experimental
Pin-Priority: 500
8.3.3. Working with Several Distributions
Given that
apt
is such a marvelous tool, you will likely want to dive in and start experimenting
with packages coming from other distributions. For example, after installing a Kali Rolling system,
you might want to try out a software package available in Kali Dev, Debian Unstable, or Debian
Experimental without diverging too much from the system’s initial state.
Even if you will occasionally encounter problems while mixing packages from different distribu-
tions,
apt
manages such coexistence very well and limits risks very effectively (provided that the
package dependencies are accurate). First, list all distributions used in
/etc/apt/sources.list
and define your reference distribution with the APT::Default-Release parameter (see section
8.2.3
,
“
Upgrading Kali Linux
” [page 184]).
Let’s suppose that Kali Rolling is your reference distribution but that Kali Dev and Debian
Unstable are also listed in your
sources.list
file. In this case, you can use
apt install
package/unstable
to install a package from Debian Unstable. If the installation fails due to some
unsatisfiable dependencies, let it solve those dependencies within Unstable by adding the -t un-
stable parameter.
In this situation, upgrades (
upgrade
and
full-upgrade
) are done within Kali Rolling except for
packages already upgraded to another distribution: those will follow updates available in the other
distributions. We will explain this behavior with the help of the default priorities set by APT below.
Do not hesitate to use
apt-cache policy
(see sidebar “
Using
apt-cache policy
” [page 204]) to
verify the given priorities.
Everything relies on the fact that APT only considers packages of higher or equal version than the
installed package (assuming that
/etc/apt/preferences
has not been used to force priorities
higher than 1000 for some packages).
|
| |