Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How to parse the zypper info output?

by perlfan (Vicar)
on Dec 27, 2021 at 16:05 UTC ( #11139939=note: print w/replies, xml ) Need Help??


in reply to How to parse the zypper info output?

Maybe go to the source data? I was hoping to find an sqlite DB under the hood, but this is the closest I found to any package DB; and this doesn't look any worse than the zypper info output or the XML, https://github.com/openSUSE/zypper/blob/master/tests/data/openSUSE-11.1/suse/setup/descr/packages.gz - I couldn't find the descriptions and this might be very outdated; so, ymmv:
##---------------------------------------- =Pkg: perl-Net-DNS 0.62 4.1 i586 =Cks: SHA1 21e4716e48ea345bf53df78b55fdd6d147d8ebf2 +Req: perl-Digest-HMAC perl-Net-IP perl = 5.10.0 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(VersionedDependencies) <= 3.0.3-1 libc.so.6 libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.4) rpmlib(PayloadIsBzip2) <= 3.0.5-1 -Req: +Prq: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(VersionedDependencies) <= 3.0.3-1 rpmlib(PayloadIsBzip2) <= 3.0.5-1 -Prq: +Prv: perl_dns DNS.so perl(Net::DNS) = 0.62 perl(Net::DNS::Header) = 622 perl(Net::DNS::Nameserver) = 688 perl(Net::DNS::Packet) = 688 perl(Net::DNS::Question) = 690 perl(Net::DNS::RR) = 688 perl(Net::DNS::RR::A) = 546 perl(Net::DNS::RR::AAAA) = 388 perl(Net::DNS::RR::AFSDB) = 632 perl(Net::DNS::RR::CERT) = 388 perl(Net::DNS::RR::CNAME) = 632 perl(Net::DNS::RR::DNAME) = 388 perl(Net::DNS::RR::EID) = 388 perl(Net::DNS::RR::HINFO) = 639 perl(Net::DNS::RR::IPSECKEY) = 654 perl(Net::DNS::RR::ISDN) = 388 perl(Net::DNS::RR::LOC) = 388 perl(Net::DNS::RR::MB) = 632 perl(Net::DNS::RR::MG) = 632 perl(Net::DNS::RR::MINFO) = 632 perl(Net::DNS::RR::MR) = 632 perl(Net::DNS::RR::MX) = 632 perl(Net::DNS::RR::NAPTR) = 583 perl(Net::DNS::RR::NIMLOC) = 388 perl(Net::DNS::RR::NS) = 632 perl(Net::DNS::RR::NSAP) = 388 perl(Net::DNS::RR::NULL) = 388 perl(Net::DNS::RR::OPT) = 393 perl(Net::DNS::RR::PTR) = 632 perl(Net::DNS::RR::PX) = 632 perl(Net::DNS::RR::RP) = 632 perl(Net::DNS::RR::RT) = 632 perl(Net::DNS::RR::SOA) = 632 perl(Net::DNS::RR::SPF) = 684 perl(Net::DNS::RR::SRV) = 583 perl(Net::DNS::RR::SSHFP) = 626 perl(Net::DNS::RR::TKEY) = 388 perl(Net::DNS::RR::TSIG) = 388 perl(Net::DNS::RR::TXT) = 582 perl(Net::DNS::RR::Unknown) = 388 perl(Net::DNS::RR::X25) = 388 perl(Net::DNS::Resolver) = 614 perl(Net::DNS::Resolver::Base) = 698 perl(Net::DNS::Resolver::Cygwin) = 696 perl(Net::DNS::Resolver::Recurse) = 591 perl(Net::DNS::Resolver::UNIX) = 482 perl(Net::DNS::Resolver::Win32) = 588 perl(Net::DNS::Update) = 517 perl-Net-DNS = 0.62-4.1 -Prv: +Obs: perl_dns -Obs: =Grp: Development/Libraries/Perl =Lic: Artistic License; GPL v2 or later =Src: perl-Net-DNS 0.62 4.1 src =Tim: 1202709958 =Loc: 1 perl-Net-DNS-0.62-4.1.i586.rpm =Siz: 258592 576685

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11139939]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2022-05-19 23:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (72 votes). Check out past polls.

    Notices?