How to use C librpm API to query database and get package's header ? #3322
                  
                    
                      jerome-diver
                    
                  
                
                  started this conversation in
                General
              
            Replies: 1 comment
-
| 
         Try calling   | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have rpm-dev and rpm version 4.19.1.1
After to read librpm API from ftp API access version 4.19.0
And after to try to learn reading these links below:
I feel more and more confused by unrelevent examples or missing information or /*Do something... */ documentation text and so on.
Does it exist some quality documentation that can show nice examples on how to use this API library for many requested tasks whre you don't need to know the API prior to learn the API ?
I try to "do something" (as said in the official doc) with that code:
But get some error like:
And after to add from example code i read above:
sure, i got error about unexisting rpmGetVar function.
Well... from the command:
rg -e "rpmGetVar"inside /usr/include/rpm directory, it return that nothing with this name is existing.
I feel more and more confuse by documentation and example code that seems to be outdated and/or not complete.
Please, can someone help to provide real documentation or example code about how to /* Do Something... */ with librpm API in C code ?
Beta Was this translation helpful? Give feedback.
All reactions