Aus Mageia wiki
Wechseln zu: Navigation, Suche
Warnung.png
Warnung!

Das Wiki ist umgezogen und befindet sich nun unter https://wiki.mageia.org/en/Hauptseite-de . Bitte nutzen Sie das neue Wiki.

Die hier enthaltenen Informationen werden nicht aktualisiert und sind deshalb veraltet oder sogar falsch!
Diese Seite befindet sich im neuen Wiki hier: https://wiki.mageia.org/en/Wie_man_eine_Quell-RPM_findet-de


Drakconf multiflag.png
Weitere Sprachen

Deutsch ; English


Eine Quell-RPM (SRPM - Source RPM) kann viele voneinander getrennte rpm-Pakete enthalten. Diese Pakete die hier enthalten sind beziehen sich nicht unbedingt auf den Namen der Quell-RPM. Es ist wichtig zu wissen wie man die Quell-RPM für ein Paket findet.


Es gibt hier mehrere Wege dies herauszufinden.

Suchen in den installierten Paketen, mittels Name

Hast du ein Paket installiert, so kannst du das Kommando

$ rpm -qi <package name>

verwenden.

So z.B.:

$ rpm -qi firefox
Name        : firefox
Epoch       : 0
Version     : 10.0.4
Release     : 1.mga2
Architecture: i586
Install Date: Don 31 Mai 2012 00:41:53 CEST
Group       : Networking/WWW
Size        : 36113009
License     : MPLv1+
Signature   : RSA/SHA1, Son 22 Apr 2012 11:45:08 CEST, Key ID b742fa8b80420f66
Source RPM  : firefox-10.0.4-1.mga2.src.rpm
Build Date  : Son 22 Apr 2012 11:28:47 CEST
Build Host  : jonund.mageia.org
Relocations : (not relocatable)
Packager    : tmb <tmb>
Vendor      : Mageia.Org
URL         : http://www.mozilla.com/firefox/
Summary     : Next generation web browser
Description :
The award-winning Web browser is now faster, more secure, and fully customizable
to your online life. With Firefox(R), we've added powerful new features that
make your online experience even better. It is an 'open source' product which is
freely available, and is acquiring a growing proportion of international web
browser usage.

Firefox claims to offer a more secure web browsing experience than other products,
with better protection against spyware and other Internet-based security threats.
It includes all the standard features of a modern web browser, like Internet
searching, tracking recently visited sites, setting up shortcuts to favourite
sites, customising the software behaviour and so on. Firefox also includes
features like 'tabbed browsing' (opening several web sites as sections within the
same window) and methods for controlling pop-up windows, cookies and downloaded
files.

Diese Ausgaben zeigt dir, dass die SRPM firefox-10.0.4-1.mga2.src.rpm auf deinem System installiert ist.

Suchen in den installierten Paketen, mittels Pfad

Möchtest du herausfinden was eine gestimmte Datei auf deinem System zur Verfügung stellt, so kannst du folgendes Kommando verwenden

$ rpm -qif </path/to/filename.ext>

Dies ist besonders bei unbekannten Dateien hilfreich.

So z.B.:

$ rpm -qif /usr/lib/libass.so.4
Name        : libass4                      Relocations: (not relocatable)
Version     : 0.9.11                            Vendor: Mageia.Org
Release     : 3.mga1                        Build Date: Sun 16 Jan 2011 18:54:29 GMT
Install Date: Sat 04 Jun 2011 17:09:47 BST      Build Host: ecosse
Group       : System/Libraries              Source RPM: libass-0.9.11-3.mga1.src.rpm
Size        : 108260                           License: GPLv2+
Signature   : RSA/SHA1, Fri 11 Feb 2011 21:49:01 GMT, Key ID b742fa8b80420f66
Packager    : Mageia Team <http://www.mageia.org>
URL         : http://code.google.com/p/libass/
Summary     : Shared library for SSA/ASS subtitles rendering
Description :
Libass is a portable library for SSA/ASS subtitles rendering.


$ rpm -qif /usr/bin/firefox
Name        : firefox                      Relocations: (not relocatable)
Version     : 7.0.1                             Vendor: Mageia.Org
Release     : 0.1.mga1                      Build Date: Fri 30 Sep 2011 03:10:56 BST
Install Date: Sat 01 Oct 2011 16:01:33 BST      Build Host: jonund
Group       : Networking/WWW                Source RPM: firefox-7.0.1-0.1.mga1.src.rpm
Size        : 33911286                         License: MPLv1+
Signature   : RSA/SHA1, Fri 30 Sep 2011 03:30:12 BST, Key ID b742fa8b80420f66
Packager    : Mageia Team <http://www.mageia.org>
URL         : http://www.mozilla.com/firefox/
Summary     : Next generation web browser
Description :
The award-winning Web browser is now faster, more secure, and fully customizable
to your online life. With Firefox(R), we've added powerful new features that
make your online experience even better. It is an 'open source' product which is
freely available, and is acquiring a growing proportion of international web
browser usage.

Firefox claims to offer a more secure web browsing experience than other products,
with better protection against spyware and other Internet-based security threats.
It includes all the standard features of a modern web browser, like Internet
searching, tracking recently visited sites, setting up shortcuts to favourite
sites, customising the software behaviour and so on. Firefox also includes
features like 'tabbed browsing' (opening several web sites as sections within the
same window) and methods for controlling pop-up windows, cookies and downloaded
files.


Möchtest du den Pfad zu einer Anwendung wissen, verwende das Kommando $ which, mit dem alle Verzeichnisse in deinem Pfad durchsucht werden.

$ which firefox
/usr/bin/firefox

Alternativ kannst du auch die oben beschriebenen Kommandos verwenden.

Suche ein Paket auf allen Medien

Dies funktioniert immer, egal ob ein Paket installiert ist oder nicht:

$ urpmq -i <package name>
$urpmq -i kontact

Name        : kontact
Version     : 4.4.11.1
Release     : 2.1.mga1
Group       : Graphical desktop/KDE
Size        : 997979                       Architecture: i586
Source RPM  : kdepim4-4.4.11.1-2.1.mga1.src.rpm
URL         : http://pim.kde.org
Summary     : Kontact Container
Description :
The KDE Kontact Personal Information Management suite unites mature and
proven KDE applications under one roof. Thanks to the powerful KParts
technology, existing applications are seamlessly integrated into one.

Hier zeigt das obige Beispiel "$ urpmq -i kontact" dass die SRPM von kontact-4.4.11.1-2.1.mga1 in kdepim4-4.4.11.1-2.1.mga1.src.rpm zu finden ist.

Hinweis: "urpmq -i <package name>" sucht auf allen Medien die auf deinem System verfügbar sind und gibt alle Pakete aus. Gab es zu einem Paket bereits ein Aktualisierung, so sieht die Ausgabe ähnlich der nachfolgenden aus (vorausgesetzt, du hast Core Updates nicht deaktiviert):

$ urpmq -i sudo
Name        : sudo
Version     : 1.8.3p2
Release     : 1.mga2
Group       : System/Base
Size        : 1785410                      Architecture: i586
Source RPM  : sudo-1.8.3p2-1.mga2.src.rpm
URL         : http://www.sudo.ws/sudo
Summary     : Allows command execution as root for specified users
Description :
Sudo is a program designed to allow a sysadmin to give limited root
privileges to users and log root activity. The basic philosophy is
to give as few privileges as possible but still allow people to get
their work done.

Name        : sudo
Version     : 1.8.3p2
Release     : 2.mga2
Group       : System/Base
Size        : 1785710                      Architecture: i586
Source RPM  : sudo-1.8.3p2-2.mga2.src.rpm
URL         : http://www.sudo.ws/sudo
Summary     : Allows command execution as root for specified users
Description :
Sudo is a program designed to allow a sysadmin to give limited root
privileges to users and log root activity. The basic philosophy is
to give as few privileges as possible but still allow people to get
their work done.

Auf der anderen Seite, wartet ein Aktualisierungskandidat auf eine Bestätigung in Core Updates Testing und du hast dieses Medium auf deinem System aktiviert, kann die Ausgabe ähnlich der folgenden aussehen:

$ urpmq -i thunderbird
Name        : thunderbird
Version     : 10.0.5
Release     : 1.mga2
Group       : Networking/Mail
Size        : 38480057                     Architecture: i586
Source RPM  : thunderbird-10.0.5-1.mga2.src.rpm
URL         : http://www.mozilla.org/en-US/thunderbird/organizations/all-esr.html
Summary     : Full-featured email, RSS, and newsgroup client
Description :
Mozilla Thunderbird is a full-featured email, RSS and newsgroup client that
makes emailing safer, faster and easier than ever before.

Name        : thunderbird
Version     : 10.0.4
Release     : 1.mga2
Group       : Networking/Mail
Size        : 38481635                     Architecture: i586
Source RPM  : thunderbird-10.0.4-1.mga2.src.rpm
URL         : http://www.mozilla.org/en-US/thunderbird/organizations/all-esr.html
Summary     : Full-featured email, RSS, and newsgroup client
Description :
Mozilla Thunderbird is a full-featured email, RSS and newsgroup client that
makes emailing safer, faster and easier than ever before.

Hinweis: Hast du verschiedene Medien aktiviert, bezeichnet urpmq -i nicht von wo dieses Paket kommt. Benötigst du diese Information, so lese weiter um herauszufinden, wie man die Suche effizienter gestalten kann.

Suchen eines beliebten Pakets auf einem speziellen Medium

So wie oben erwähnt sucht "urpmq -i <paketname>" ein Paket auf allen Medien, die in diesem System verfügbar sind. Um die Suche auf ein Medium einzuschränken, verwende

urpmq -i --media "<Core Release/Core Updates/Core Updates Testing>"

Um der Klarheit willen ist das nachfolgende Beispiel vom gleichen System als jene Beispiele im Abschnitt Suche ein Paket auf allen Medien.

$ urpmq -i --media "Core Release" sudo
Name        : sudo
Version     : 1.8.3p2
Release     : 1.mga2
Group       : System/Base
Size        : 1785410                      Architecture: i586
Source RPM  : sudo-1.8.3p2-1.mga2.src.rpm
URL         : http://www.sudo.ws/sudo
Summary     : Allows command execution as root for specified users
Description :
Sudo is a program designed to allow a sysadmin to give limited root
privileges to users and log root activity. The basic philosophy is
to give as few privileges as possible but still allow people to get
their work done.
$ urpmq -i --media "Core Updates" sudo
Name        : sudo
Version     : 1.8.3p2
Release     : 2.mga2
Group       : System/Base
Size        : 1785710                      Architecture: i586
Source RPM  : sudo-1.8.3p2-2.mga2.src.rpm
URL         : http://www.sudo.ws/sudo
Summary     : Allows command execution as root for specified users
Description :
Sudo is a program designed to allow a sysadmin to give limited root
privileges to users and log root activity. The basic philosophy is
to give as few privileges as possible but still allow people to get
their work done.

Diese Ausgabe zeigt dir das SRPM sudo-1.8.3p2-1.mga2.src.rpm mit der Version von Mageia 2 veröffentlicht wurde. Später wurde eine Aktualisierung eingeschoben, namentlich SRPM sudo-1.8.3p2-2.mga2.src.rpm.

$ urpmq -i --media "Core Release" thunderbird
Name        : thunderbird
Version     : 10.0.4
Release     : 1.mga2
Group       : Networking/Mail
Size        : 38481635                     Architecture: i586
Source RPM  : thunderbird-10.0.4-1.mga2.src.rpm
URL         : http://www.mozilla.org/en-US/thunderbird/organizations/all-esr.html
Summary     : Full-featured email, RSS, and newsgroup client
Description :
Mozilla Thunderbird is a full-featured email, RSS and newsgroup client that
makes emailing safer, faster and easier than ever before.
$ urpmq -i --media "Core Updates Testing" thunderbird
Name        : thunderbird
Version     : 10.0.5
Release     : 1.mga2
Group       : Networking/Mail
Size        : 38480057                     Architecture: i586
Source RPM  : thunderbird-10.0.5-1.mga2.src.rpm
URL         : http://www.mozilla.org/en-US/thunderbird/organizations/all-esr.html
Summary     : Full-featured email, RSS, and newsgroup client
Description :
Mozilla Thunderbird is a full-featured email, RSS and newsgroup client that
makes emailing safer, faster and easier than ever before.

thunderbird-10.0.4-1.mga2.src.rpm wurde mit Mageia 2 veröffentlicht, während thunderbird-10.0.5-1.mga2.src.rpm aktuell ein Aktualisierungskandidat ist.

Weitere Informationen

Benötigst du weitere und umfangreiche Informationen, so ist eine gute Quelle dazu, in den man pages nachzusehen:

 $ man urpmq 
 $ man rpm 

Zurück zum QA Portal