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

There’s two ways to change the default rpmbuild topdir: Per-User: By configuring the RPM topdir in $HOME/.rpmmacros %_topdir %{getenv:HOME}/rpmbuild Per-Project: By configuring the RPM topdir in the Makefile or on the command line rpmbuild –define ‘_topdir build’ -ba package.spec Note: in both cases, you will need to make sure your topdir directory has the appropriate … Read more

How to install .rpm on Ubuntu? [closed]

From https://help.ubuntu.com/community/RPM/AlienHowto , use the alien package: Alien converts an RPM package file into a Debian package file or Alien can install an RPM file directly. This is not the recommended way to install software packages in Ubuntu. If at all possible, install packages from Ubuntu’s repositories using Add/Remove, apt-get, or the Synaptic Package Manager. … Read more

What actually is $RPM_BUILD_ROOT?

$RPM_BUILD_ROOT (or the equivalent %{buildroot} SPEC file macro) always holds the directory under which RPM will look for any files to package. The RPM scripts (e.g. the script that compresses the manual pages) will also use that value to know where to look for the files that were just installed. Normally, this value will be … Read more

Check RPM dependencies

In fact that’s not a one but four different questions :). *) First you can quickly list a downloaded package’s dependencies/requirements by using the following commands: $ rpm -qp mypackage.rpm –provides $ rpm -qp mypackage.rpm –requires *) Second, you can use yum utility in order to satisfy these (somewhat cryptic) dependencies automatically (assuming that all … Read more

How to ignore conflicts in rpm installs

The –force option will reinstall already installed packages or overwrite already installed files from other packages. You don’t want this normally. If you tell rpm to install all RPMs from some directory, then it does exactly this. rpm will not ignore RPMs listed for installation. You must manually remove the unneeded RPMs from the list … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)