rpm

Linux desktop shortcut and icon from install

What do I need to add to my .spec file to create the desktop shortcut and assign an icon to the shortcut during install of my .rpm? If a script is required, an example would be very helpful. ...

Where's the best source of up to date RPMs for RedHat?

Where can I find up to date RPMs for different versions of Redhat Enterprise Linux? Specifically I'm looking for an Apache RPM. Normally I would turn to: http://dag.wieers.com/rpm/packages/ but they don't seem to have any RPMS for apache. Any ideas? ...

Can yum be used to list the contents of a package?

I know how to use rpm to list the contents of a package (rpm -qpil package.rpm). Is there any way to do this with yum? ...

Where to find packages names and versions for RedHat?

How can I find out whether a specific RedHat release (RHEL4, RHEL5...) contains a certain package (or a certain version of a package)? For Debian and Ubuntu, there's packages.debian.org and packages.ubuntu.com; is there a similar web site for RedHat? Note: I don't want to have to install all the releases just to check some package versi...

How to extract RPM from RPM database in RedHat

Is there a way to extract an installed RPM from an RPM database on RedHat Linux to reproduce the original .rpm file? ...

Why is topdir set to its default value when rpmbuild called from tcl ?

Hi, I have a tcl script which 'exec' rpmbuild. When doing so, the 'topdir' used by rpmbuild is wrong. I have a .rpmmacros file in my home directory and if I call manually rpmbuild, it works fine, ie. the 'topdir' is not the default one. I added a [exec rpmbuild "--showrc" ] in the tcl script to check the value of topdir and it says '-...

Create RPM package from ANT script under Windows

I need to create an RPM package from an ANT script that runs on a Windows computer. This package must contain the result classes from the build plus some other, additional resources. I guess there should be some program somewhere that can be invoked from the command line to create this package. The reason why I want to do this under w...

Given an rpm package name, query the yum database for updates

I was imagining a 3-line Python script to do this but the yum Python API is impenetrable. Is this even possible? Is writing a wrapper for 'yum list package-name' the only way to do this? ...

Is including system test cases into the final packaged product of your application contributing to bloat or increasing risk?

I am packaging up an rpm file which has a %postinstall section that detects certain conditions and runs a suite of unit, function, and system tests. I am getting some push back that it exposes some of the internal structure as I use some of the same environment variables the code itself uses for diagnostics. Thoughts? UPDATE: I am no...

Doing a release cycle with a product that's delivered via RPMs

I just started working for the first time with a product that's delivered via the Linux RPM mechanism, rather than as a standalone installer, and realized that this makes the test / release cycle a bit more tricky. When I was working with installers, we would just change the build numbering in our build system to mark a build as a test ...

How do I use rpm to update/replace existing files?

I have several applications that I wish to deploy using rpm. Some of the files in my application deployments override files from other deployed packages. Simply including the new files in the deployment package will cause rpm conflicts. I am looking for the proper way to use rpm to update/replace already installed files. I have alrea...

Variables in debian/rules makefile

I have to port one RPM (made for Fedora) to Ubuntu as a deb package. In the RPM .spec file I'm using several variables ($RPM_BUILD_ROOT, %{_libdir}, %{name}, %{version}) to create a symlink: %install ... (cd $RPM_BUILD_ROOT/%{_bindir}; ln -sf %{_libdir}/%{name}-%{version}/%{name} . ) (Relative symlinks are forbidden (please don't ask...

AIX deployment : installp or rpm?

I am deploying a large set of perl/shell/sql code on AIX. these could be (and are) different applications with their own dev teams, source control repos, etc. I am lazy and want to make deployments/roll-backs easier - and I am digging towards rpm packaging with all it's +/- benefits. AIX native system of packaging is installp (with bf...

Installing RPM Dependencies

Hi, I am trying to install dbus-1.1.2-12.el5.i386 but I get the error " dbus-libs = 1.1.2-12.el5 is needed by dbus-1.1.2-12.el5.i386" :-( So I downloaded "dbus-libs-1.1.2-12.el5.i386.rpm" in the same directory and ran the command rpm -ivh dbus-1.1.2-12.el5.i386 again, but I still got the same error. On searching on Forums I found t...

What is the minimum I have to do to create an RPM file?

I just want to create an RPM file to distribute my Linux binary "foobar", with only a couple of dependencies. It has a config file, /etc/foobar.conf and should be installed in /usr/bin/foobar. Unfortunately the documentation for RPM is 27 chapters long and I really don't have a day to sit down and read this, because I am also busy maki...

How to deploy home-grown applications with rpm?

here is my scenario our team develops on AIX dozens of applications, mostly Perl, shell scripts, batch java, C i would like to simplify deployment/rollback procedures - currently using plain old tarballs with backups I looked into installp vs. rpm for packaging (see my SO question) and decided to go with rpm - better docs, plus IBM inc...

How to package a game for Linux?

I have a game that currently runs under Windows and Mac OS X and I'd like to make it available under Linux. The porting should be fairly easy since it's a Java based game and uses portable libraries that are available on all 3 platforms. The hard part and the reason for this question is packaging it so that it works on as many modern Li...

RPM to MSI wrapper?

I was wondering if any efforts have been made to create MSI files from rpm spec files or if there are any good ports of RPM to Windows. ...

Running the rpmbuild command with the --quiet option flag results in extensive debug info.

Hi all, I wish to minimize the output of my rpm build procedure. I run the following command: rpmbuild -ba --quiet "/tmp/yaneeve/kit/linux/rpm_spec" My system is: Linux yaneeve-lnx-82-5 2.4.21-47.ELsmp #1 SMP Wed Jul 5 20:38:41 EDT 2006 i686 i686 i386 GNU/Linux The rpmbuild version is: RPM version 4.2.3 The %prep section of my rpm s...

%preun is passed with value 0 to $1 during upgrade

I have a rpm package which is already installed in the system. I want to replace the old package with the new package with a different package name. The "rpm -Uvh [package name]" should be enough to replace the old package with the new one. After doing some research in the net I found that "Obsoletes" is used to obsolete an old package ...