10 More Discussions You Might Find Interesting
1. AIX
Hi Guys
I got this error when I try to install perl-5.24.0-1.aix6.1.ppc.rpm package
rpm -ivh perl-5.24.0-1.aix6.1.ppc.rpm
error: perl-5.24.0-1.aix6.1.ppc.rpm does not appear to be a RPM package (4 Replies)
Discussion started by: khaled_ly84
4 Replies
2. Red Hat
Hello
I have Storage foundation 6.0 version to install in redhat 6.0, so while trying to install one of the application it say to install some dependencies packages so when i try to install the dependencies again it ask for the dependencies so its a lengthy process i say. so now can i get the... (1 Reply)
Discussion started by: cyrus.ranjith
1 Replies
3. Red Hat
Hi Everybody,
I would like to know how to build an RPM package. Could you please let me know how to do it with the procedure.
Regards,
Mastan (1 Reply)
Discussion started by: mastansaheb
1 Replies
4. Emergency UNIX and Linux Support
Hello,
i have installed a package by using the command
sudo rpm -i filepackage.rpm
package filepackage is already installed
when i try to remove it, i get an error saying "is not installed":
sudo rpm -e filepackage.rpm
error: package filepackage is not installed
How can... (4 Replies)
Discussion started by: g_p
4 Replies
5. UNIX for Dummies Questions & Answers
Hello,
i have downloaded an rpm package "hadoop-0.20.205.0-1.amd64.rpm"
in /usr/local/ directory.
I'm trying to install the rpm package in a new path/location (/usr/local/hadoop-0.20.205), but i can't.
I did:
1st try: Didn't work
sudo rpm -i --prefix=/usr/local/hadoop-0.20.205... (1 Reply)
Discussion started by: g_p
1 Replies
6. UNIX for Advanced & Expert Users
Friends,
Please let meknow, How we can find the dependancies of .dstream package & .rpm package before installation ?
For AIX, We can use the inutoc . command to create the .toc file for the bff package, What about Solaris & Linux ? (0 Replies)
Discussion started by: yb4779
0 Replies
7. Ubuntu
Hi All,
I just recently installed UBUNTU 2.6.24-16 and i installed my phone software which is a RPM package (it's a similiar package with MSN).
The software called MXIE.
I managed to install it successfully but i can't run the software.
When i try to run it, i received... (8 Replies)
Discussion started by: c00kie88
8 Replies
8. Linux
have following package installed
rpm -qa |grep ADMIN
It will give the following package installed:
ADMIN-4.0.0.1
Now I will upgrade the ADMIN package using the following command.
rpm --upgrade ADMIN-4.1.0.1
It will upgrade the ADMIN packagge to ADMIN-4.1.0.1
Now I want that... (0 Replies)
Discussion started by: amitpansuria
0 Replies
9. News, Links, Events and Announcements
Hi all,
After metawire.org went down, I have revived pscm at
http://m-net.arbornet.org/~pscm/index.html
The latest release comes with:
* Clamav: 0.88.2
* MailScanner: 4.53.6-1
* SpamAssassin: 3.1.1
* Postfix: 2.2.10
* Amavisd-new-2.4.0
... (0 Replies)
Discussion started by: janetbindner
0 Replies
10. News, Links, Events and Announcements
Hi all,
Latest PSCM is updated with the following:
* Clamav: 0.87.1
* MailScanner: 4.48.4-2
* SpamAssassin: 3.1.0
* Postfix: 2.2.6
http://metawire.org/~pscm/index.html
PSCM is an RPM package that provides out-of-box easy installation for a secure smtp mailserver with... (0 Replies)
Discussion started by: janetbindner
0 Replies
RPM2(3) User Contributed Perl Documentation RPM2(3)
NAME
RPM2 - Perl bindings for the RPM Package Manager API
SYNOPSIS
use RPM2;
my $db = RPM2->open_rpm_db();
my $i = $db->find_all_iter();
print "The following packages are installed (aka, 'rpm -qa'):
";
while (my $pkg = $i->next) {
print $pkg->as_nvre, "
";
}
$i = $db->find_by_name_iter("kernel");
print "The following kernels are installed (aka, 'rpm -q kernel'):
";
while (my $pkg = $i->next) {
print $pkg->as_nvre, " ", int($pkg->size()/1024), "k
";
}
$i = $db->find_by_provides_iter("kernel");
print "The following packages provide 'kernel' (aka, 'rpm -q --whatprovides kernel'):
";
while (my $pkg = $i->next) {
print $pkg->as_nvre, " ", int($pkg->size()/1024), "k
";
}
print "The following packages are installed (aka, 'rpm -qa' once more):
";
foreach my $pkg ($db->find_by_file("/bin/sh")) {
print $pkg->as_nvre, "
";
}
my $pkg = RPM2->open_package("/tmp/XFree86-4.1.0-15.src.rpm");
print "Package opened: ", $pkg->as_nvre(), ", is source: ", $pkg->is_source_package, "
";
DESCRIPTION
The RPM2 module provides an object-oriented interface to querying both the installed RPM database as well as files on the filesystem.
CLASS METHODS
Pretty much all use of the class starts here. There are two main entrypoints into the package -- either through the database of installed
rpms (aka the rpmdb) or through a file on the filesystem (such as kernel-2.4.9-31.src.rpm or kernel-2.4.9-31.i386.rpm
You can have multiple RPM databases open at once, as well as running multiple queries on each.
open_rpm_db(-path => "/path/to/db")
As it sounds, it opens the RPM database, and returns it as an object.
open_package("foo-1.1-14.noarch.rpm")
Opens a specific package (RPM or SRPM). Returns a Header object.
RPM DB object methods
find_all_iter()
Returns an iterator object that iterates over the entire database.
find_all()
Returns an list of all of the results of the find_all_iter() method.
find_by_file_iter($filename)
Returns an iterator that returns all packages that contain a given file.
find_by_file($filename)
Ditto, except it just returns the list
find_by_name_iter($package_name)
You get the idea. This one is for iterating by package name.
find_by_name($package_name)
Ditto, except it returns a list.
find_by_provides_iter($provides_string)
This one iterates over provides.
find_by_provides($provides_string)
Ditto, except it returns a list.
find_by_requires_iter($requires_string)
This one iterates over requires.
find_by_requires($requires_string)
Ditto, except it returns a list.
RPM Header object methods
stuff goes here
TODO
Package installation and removal.
Signature validation.
HISTORY
0.01 Initial release
AUTHOR
Chip Turner <cturner@redhat.com>
SEE ALSO
perl. The original RPM module.
perl v5.8.0 2002-11-08 RPM2(3)