KO
|
EN
gitlite — search
Search
#python
#typescript
#react
#javascript
#tensorflow
#json
#nodejs
#machine-learning
#android
#kafka
#cli
#reverse-engineering
go-rpmdb
★ 70
Open GitHub ↗
RPM DB bindings for go
Download README (.md)
Explore Similar Repositories
Unity-CubeProjector
:
No description available.
Coursera-Introduction-to-Programming-the-Interne-of-Things-Specialization
:
This repository contains my full documentation of Coursera's Introduction to Programming the Internet of Things (IOT) Specialization taught by the professor Ian Harris offered by the University of California, Irvine.
FIFA-19---Career-Mode-Cheat-Table
:
FIFA 19 - Career Mode Cheat Table
NetEaseMusic
:
Material Design NetEase Music Player In MVP Pattern Design 网易云音乐
MICCAI19-MedVQA
:
AIOZ AI - Overcoming Data Limitation in Medical Visual Question Answering (MICCAI 2019)
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
go-rpmdb
?
Download (.md)
# go-rpmdb Library for enumerating packages in an RPM DB `Packages` file (without bindings). ```go package main import ( "fmt" "log" rpmdb "github.com/knqyf263/go-rpmdb/pkg" ) func main() { if err := run(); err != nil { log.Fatal(err) } } func run() error { db, err := rpmdb.Open("./Packages") if err != nil { return err } pkgList, err := db.ListPackages() if err != nil { return err } defer db.Close() fmt.Println("Packages:") for _, pkg := range pkgList { fmt.Printf("\t%+v\n", *pkg) // {Epoch:0 Name:m4 Version:1.4.16 Release:10.el7 Arch:x86_64} // {Epoch:0 Name:zip Version:3.0 Release:11.el7 Arch:x86_64} // ... } fmt.Printf("[Total Packages: %d]\n", len(pkgList)) return nil } ```