Development/FAQ
Aus Mandriva Community Wiki
Achtung, diese Seite bedarf einer Überarbeitung! Wenn du dabei helfen möchtest, schaue einmal hier vorbei.
Inhaltsverzeichnis |
[bearbeiten] CDs von Cooker erstellen
Benutze das mkcd-Skript des mkcd-Pakets:
mkcd -a <mandrivalinux_path>
Benutze die -c-Option, um die Anzahl CDs zu begrenzen:
mkcd -a -c 2 <mandrivalinux_path>
Benutze --discsize, um eine andere CD-Grösse einzustellen (Standardmässig werden Images für 650MB-CDs erstellt):
mkcd --discsize 700m -a <mandrivalinux_path>
[bearbeiten] How to deal with digital signatures signing RPM packages
As root, list the keys in gpg:
gpg --list-keys
Export each key you need in ascii format:
gpg --armor --export <keyid> > <keyid>.asc
Import them in rpm (necessary for rpm >= 4.2):
rpm --import <keyid>.asc
List the keys in rpm:
rpm -q gpg-pubkey
Actually, chances are high that all of the keys in root's keyring were introduced in order to check package signatures before rpm version 4.2, which was in Mandrake 9.2 . So you can import them all -- provided you do it one by one -- as rpm doesn't support importing several keys at once. (If you are not sure about the origin of any of the keys, do check their names with gpg, for example when on line with gpg --import --interactive 1234ABCD
This script takes cares of importing all keys from the root user's key-ring:
for key in `gpg --list-keys | grep pub | tail +2 | cut -d " " -f 3 | cut -d "/" -f 2`; do gpg -export --armor $key > $key.asc rpm --import $key.asc rm -f $key.asc done
Additionaly, urpmi starting from 4.4-19mdk is by default verifying signatures.
If urpmi warns about invalid signatures the package could have been corrupted on your local mirror or during download, so you may want to try another server. Also check via Mandriva Linux Control Center > Software Management > Select from where software packages are downloaded when updating the system: the 'Manage keys' button on the right should be used to assign different keys to various media[1]. Make sure there that you have the key assgned to the particular medium you are installing from.
Alternatively you can download the package via http or ftp and check with
rpm -Kv packagename*
for the key that's in the package (if any). It will show immediately which key you are looking for, or if absent, that somewhere it was left out accidentally. In principle *all* packages from Mandriva are signed. So, if not: be wary to proceed!
For example:
xmms-eq-0.6-4mdv2007.1.i586.rpm: Header V3 DSA signature: OK, key ID 26752624 Header SHA1 digest: OK (3afae3c03cf33f925930e102c8ad37ab590342f7) MD5 digest: OK (dd33c2ddef8c65794695303284f77bae) V3 DSA signature: OK, key ID 26752624
shows the Cooker key with ID 0x26752624
The key-ids are stored in the /etc/urpmi/urpmi.cfg config file per medium. Do not edit it unless you know very well what you are doing!
[bearbeiten] Wofür sind die anderen Kernel in Mandriva Linux?
Mandriva Linux bietet verschiedene Kernel an, die für verschiedene Zwecke erstellt wurden. Der Kernel auswählen-Beitrag enthält weitere Informationen, um dir zu helfen, einen Kernel auszuwählen, der deinen Bedürfnissen entspricht.
[bearbeiten] Was ist mit anderen RPM-basierten Distributionen?
Du hast ein RPM-Paket heruntergeladen, kannst es aber nicht installieren? Dann handelt es sich womöglich um ein Paket, das für eine andere Linux-Distribution erstellt wurde. Zu deiner Information gibt es hier einige Links zu anderen Distributionen, die das RPM-Paketformat ebenfalls verwenden.
Hinweis: Wenn du Compiler und '-devel'-Pakete installiert hast, kannst du auch Source-RPMs erstellen, die Mandriva's RPM-Einstellungen verwenden, um die Quellpakete zu kompilieren. However, poorly-written source specfiles will occasionally conflict with Mandriva package names and fail build dependencies.
[bearbeiten] Wo kann ich mehr über Mandriva Linux und Linux im Allgemeinen erfahren?
See the following topics:
- Mandriva Links - links to official Mandriva pages
- Community Links - links to valuable Mandriva community pages
- The Linux Documentation Project
- Other Distribution Links - other distribution links
[bearbeiten] Wo gibt es weitere FAQ?
Auf der deutschen MandrivaUser.de-Seite. MandrivaUser-FAQ
[bearbeiten] Notes
- ↑ From a terminal the command name for this function is edit-urpm-sources.pl