Codename: offsec-internal




Download 11,68 Mb.
Pdf ko'rish
bet158/174
Sana15.01.2024
Hajmi11,68 Mb.
#137314
1   ...   154   155   156   157   158   159   160   161   ...   174
Bog'liq
Kali-Linux-Revealed-2021-edition

Codename: offsec-internal
AlsoAcceptFor: unstable
Origin: Offensive Security
Description: Offsec’s Internal packages
Architectures: source amd64 i386
Components: main
SignWith: F8FE22F74F1B714E38DA6181B27F74F7B4EF2D0D
END
The required fields are Codename, which gives the name of the distribution, Architectures, which
indicates which architectures will be available in the distribution (and accepted on the input side),
and Components, which indicates the various components available in the distribution (com-
ponents are a sort of sub-section of the distribution, which can be enabled separately in APT’s
sources.list). The Origin and Description fields are purely informative and they are copied as-is
in the
Release
file. The SignWith field asks
reprepro
to sign the repository with the GnuPG key
whose identifier is listed (put the full fingerprint here to ensure you use the correct key, and not
another one colliding on the short identifier). The AlsoAcceptFor setting is not required but makes
it possible to process
.changes
files whose Distribution field has a value listed here (without this,
it would only accept the distribution’s codename in that field).
With this basic setup in place, you can let
reprepro
generate an empty repository:
276
Kali Linux Revealed


pkgrepo@kali:~/reprepro$ reprepro export
Exporting indices...
pkgrepo@kali:~/reprepro$ find .
.
./db
./db/version
./db/references.db
./db/contents.cache.db
./db/checksums.db
./db/packages.db
./db/release.caches.db
./conf
./conf/distributions
./dists
./dists/offsec-internal
./dists/offsec-internal/Release.gpg
./dists/offsec-internal/Release
./dists/offsec-internal/main
./dists/offsec-internal/main/source
./dists/offsec-internal/main/source/Release
./dists/offsec-internal/main/source/Sources.gz
./dists/offsec-internal/main/binary-amd64
./dists/offsec-internal/main/binary-amd64/Packages
./dists/offsec-internal/main/binary-amd64/Release
./dists/offsec-internal/main/binary-amd64/Packages.gz
./dists/offsec-internal/main/binary-i386
./dists/offsec-internal/main/binary-i386/Packages
./dists/offsec-internal/main/binary-i386/Release
./dists/offsec-internal/main/binary-i386/Packages.gz
./dists/offsec-internal/InRelease
As you can see,
reprepro
created the repository meta-information in a
dists
sub-directory. It
also initialized an internal database in a
db
sub-directory.
It is now time to add your first package.
First, copy the files generated by the build
of the offsec-defaults package (
offsec-defaults_1.0.dsc
,
offsec-defaults_1.0.tar.xz
,
offsec-defaults_1.0_all.deb
, and
offsec-defaults_1.0_amd64.changes
) into
/tmp
on the
server hosting the package repository and ask
reprepro
to include the package:
pkgrepo@kali:~/reprepro$ reprepro include offsec-internal /tmp/offsec-defaults_1.0
å

Download 11,68 Mb.
1   ...   154   155   156   157   158   159   160   161   ...   174




Download 11,68 Mb.
Pdf ko'rish