Reliable way to determine native packaging system

Reindl Harald h.reindl at thelounge.net
Thu Mar 14 15:09:24 UTC 2013



Am 14.03.2013 16:07, schrieb Theodore Papadopoulo:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I'm trying to find a standard way of finding the native packaging
> system of a linux distribution. I'm not sure at all that testing the
> presence of {rpm/yum}|{apt-get} is reliable as for example I can
> install apt-get of my fedora computer.
> 
> So the question is, is there a simple test that can reliably determine
> whether a linux machine is rpm or debian based for its native package
> scheme?

presence of /var/lib/rpm
/etc/os-release
/etc/redhat-release


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20130314/39d4e152/attachment.sig>


More information about the users mailing list