Questions tagged [rpm]

RPM Package Manager (RPM) is a package management system for unix based operating systems.

RPM Package Manager (RPM) (originally Red Hat Package Manages) is a powerful and mature command-line driven package management system capable of installing, uninstalling, verifying, querying, and updating primarily and nowadays also software packages. Each software package consists of an archive of files along with information about the package in "Binary RPMs" like its version, a description, and the like.

2353 questions
40
votes
4 answers

How do I get rpmbuild to download all of the sources for a particular .spec?

I am adding some sources to an existing rpm .spec file by URL and don't have them downloaded yet. Is there a way to get rpmbuild to download the sources rather than doing it manually?
joeforker
  • 40,459
  • 37
  • 151
  • 246
40
votes
3 answers

Check RPM dependencies

When you are installing a program using .deb packages on Ubuntu, you can check dependencies of package using Ubuntu Packages Search. For example I can see dependencies of Wireshark from here. As you can see, dependencies marked by red bullet. If you…
SuB
  • 2,250
  • 3
  • 22
  • 37
37
votes
2 answers

What actually is $RPM_BUILD_ROOT?

In the process of building an RPM package, I have to specify the BuildRoot and later will be used in %install which invovles $RPM_BUILD_ROOT. I always think that $RPM_BUILD_ROOT is the fake installation for RPM to perform packaging. Then, at install…
Amumu
  • 17,924
  • 31
  • 84
  • 131
36
votes
2 answers

How to set the build area for rpmbuild per-invocation

I'm modifying an automated build, and want to tell rpmbuild to use a specific build area when invoking it. This is similar to an existing question, but more specific. I don't want to run any of the build commands as the root user; the aim is only…
bignose
  • 30,281
  • 14
  • 77
  • 110
33
votes
2 answers

How to install .rpm on Ubuntu?

I am an ubuntu user, however I need to install a printer driver which is a RPM (*.rpm) file (Sorry it's the only driver available from the Manufacturer site for Linux). Is it possible to install RPM files on ubuntu? Thanks in advance.
mpalencia
  • 5,481
  • 4
  • 45
  • 59
31
votes
1 answer

RPM spec file - Is it possible to dynamically populate a spec file variable

I have a spec file. I need to %define a spec variable that gets its value from a one line file on the system. For example %define path `cat /home/user/path_file` and in path_file is one line /var/www/html/hosts This partially works. I say that…
last_shogun
  • 337
  • 1
  • 4
  • 8
30
votes
4 answers

RPM upgrade uninstalls the RPM

I am upgrading our project RPM. The problem is when I upgrade from projectname-1.0-0 to projectname-1.0-1, it first installs the new project and uninstalls the old project, which, in overall view, removes my project entirely. I have used "vv"…
Vidya
  • 301
  • 1
  • 3
  • 5
29
votes
4 answers

How to add compiler include paths and linker library paths for newly installed Boost?

I have RHEL 5.2, with Boost 1.33 installed. I downloaded boost_1_44_0.tar.bz2. and built it. On completion it showed: The Boost C++ Libraries were successfully built! The following directory should be added to compiler include paths: …
Nav
  • 19,885
  • 27
  • 92
  • 135
28
votes
5 answers

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

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…
Barth
  • 15,135
  • 20
  • 70
  • 105
27
votes
4 answers

rpmbuild change compression format

I try to pack some map files for our geoserver in an internal rpm package. For the build part, this is just to copy the files. I think this works as expected. But it takes terribly long to pack those 20GB of images. I've read that rpm internally…
mkraemerx
  • 1,713
  • 2
  • 17
  • 21
26
votes
2 answers

How to know the value of built-in macro in RPM?

How do I view the value of these macros in RPM? I can take a guess that %_bindir is /usr/bin, %_tmppath is /tmp, but: how exactly do I view these values and are their values system-dependent? %_prefix %_exec_prefix %_bindir %_sbindir…
Amumu
  • 17,924
  • 31
  • 84
  • 131
24
votes
3 answers

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…
tremoloqui
  • 3,198
  • 3
  • 25
  • 22
24
votes
2 answers

What does %defattr mean in RPM spec files?

While creating RPMs, the RPM spec files have a directive %defattr . I know that it defines the default attributes for the files that are installed by that RPM. If I write the %defattr as below, what does it mean? %defattr(-testuser, testuser)
Mariselvam
  • 1,093
  • 2
  • 15
  • 28
24
votes
2 answers

rpmbuild %{dist} not defined on CentOS 5.5?

I'm attempting to use the %{dist} tag in my RPM spec file to provide distribution-specific dependencies between Fedora Core (e.g. fc12), CentOS 5 (e.g. el5) and Amazon's Linux AMI: Release: %_svn_revision%{?dist} and #…
Barry Wark
  • 107,306
  • 24
  • 181
  • 206
24
votes
5 answers

How to set the rpmbuild destination folder

I noticed rpmbuild (-bb and --buildroot options) creates the .rpm in different locations depending of what OS are you using: GNU/Linux Ubuntu <= 9.04: /usr/src/rpm/... GNU/Linux Ubuntu >= 9.10: /home/rpmbuild/... GNU/Linux Fedora:…
Htechno
  • 5,901
  • 4
  • 27
  • 37