Re: yum-Frage

Nils Philippsen <[email protected]>
Newsgroups gmane.linux.redhat.fedora.german
Organization Red Hat GmbH
Message-ID <1316441152.26984.5.camel@gibraltar>
On Sun, 2011-09-18 at 15:48 +0200, Heiko Adams wrote:
> Am 18.09.2011 15:26, schrieb Dominic Hopf:
> > Am Sonntag, den 18.09.2011, 14:19 +0200 schrieb Frank Zimmermann:
> >> Hallo Zusammen,
> >> 
> >> wie in meiner separaten Mail erwähnt bin ich neu bei Fedora und
> >> arbeite mich gerade in yum ein. Gibt eine Möglichkeit mir auf der
> >> Kommandozeile den Status (installiert ja/nein) eines Pakets
> >> gleich anzeigen zu lassen. Auf einem deb basierten System würde
> >> z.B. aptitude search foo | grep ^i
> >> 
> >> alle installierten Pakete mit foo im nahmen liefern.
> > 
> > rpm -qa | grep foo
> > 
> > Liefert dir auf Fedora alle installierten Pakete mit "foo" im
> > Namen. :)
> > 
> > Gruß, Dominic
> > 
> Alternativ kann man auch
> 
>   yum list installed | grep foo
> 
> verwenden ;-)

Sowohl rpm als auch yum akzeptieren Shell-Globs, grep brauchst Du also
nicht:

rpm -qa '*foo*'
yum list installed '*foo*'

Ciao,
Nils
-- 
Nils Philippsen      "Those who would give up Essential Liberty to purchase 
Red Hat               a little Temporary Safety, deserve neither Liberty
[email protected]       nor Safety."  --  Benjamin Franklin, 1759
PGP fingerprint:      C4A8 9474 5C4C ADE3 2B8F  656D 47D8 9B65 6951 3011

--
de-users mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/de-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.