Re: two questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i would just add a tag onto the name of the custom packages i build.

%define company foo

Name: dog_%{company}

(or something to that effect)



i find
rpm -q -g Applications/Databases 
works for me, but
rpm -q -g 'Applications/*'
does not.

does rpm -q -g foo/bar
work for you?



On Thu, 2007-06-14 at 13:03 +0000, tony.chamberlain@xxxxxxxxx wrote:
> Hi
> 
> 1. Does anyone have any suggestions for package naming?  Some packages
> will be ok,
>     but others not.  For instance, we have a watchdog package.  If I
> call it "dog" there is
>     a high chance ther may be some other package named "dog" installed
> on a system that
>     this one would also go on, and there could be a conflict.  It
> could be a completely different
>     independent watch dog program.  I know Java packages have the
> company name and all
>     that in reverse, like com.mcdonalds.hamburger.utils or whatever
> (that name is just an
>     example).
> 
>     Should packages be named similarly, like
> com-mcdonalds-hamburger-utils-1.0.0.rpm in case
>     there are other packages named util?
> 
> 2. I have been giving my packages group names (like in the examples
> Applications/Databases).
>     You can do an rpm query like    rpm -q -g Applications/Databases
> to find rpms with that group.
>     Now say you have a company called "foo" and you give your groups
> names such as
>     foo/bar, foo/pub, foo/tavern.  You want to find all the groups
> with foo.  rpm -q -g foo/* does not work.
>     Nor does rpm -q -g foo.  Is there any way to do this?
>     (other than    rpm -qa --queryformat '%{NAME}-%{VERSION}\t
> %{GROUP}\n'  |  grep -i foo
> 
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/rpm-list
-- 
Hiren Patel

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail and its contents are subject to the Telkom SA Limited
e-mail legal notice available at 
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux