LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 01-06-2015, 01:45 AM   #1
afreenahmed
LQ Newbie
 
Registered: Jan 2015
Posts: 1

Rep: Reputation: Disabled
Show message(s) before/during rpm installation


Hi,
I have an rpm in both 32bit and 64bit versions. I have the below requests from my client:
1. When a 32bit rpm is being installed on a 64bit OS (and vice versa), we must get a meaningful message instead of failed dependencies
2. When a 32bit rpm is installed, the 64bit rpm installation (and vice versa) must fail instead of replacing the files from 32bit installation (and vice versa).

For 1, I tried using a script in %pre section to display a warning message. However, the failed dependencies message appears even before that. My spec file does not explicitly add any "Requires" packages. Is there a way I can provide a warning message based on the rpm and OS architectures?

What can be done for 2?

Thanks.
 
Old 01-06-2015, 07:09 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by afreenahmed View Post
For 1, I tried using a script in %pre section to display a warning message. However, the failed dependencies message appears even before that. My spec file does not explicitly add any "Requires" packages. Is there a way I can provide a warning message based on the rpm and OS architectures? What can be done for 2?
First of all packages you build should have an %{_arch} tag in the RPM file name (as in "%{name}-%{version}-%{release}.%{arch}"). That way nobody can erroneously download / install the wrong package. If anyone willingly installs an i386 package on x86_64 then they deserve nothing better.
To put it simply: their error is not what you should correct.
To put it even simpler: its PEBCAK.

Anyway, the answer you probably were expecting is here: http://www.rpm.org/wiki/PackagerDocs/ArchDependencies
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to show emergency pop up message to user? (on X) browny_amiga Linux - General 26 11-08-2011 04:36 AM
What flag do I use with RPM to show the changes/patches included in an RPM? abefroman Linux - Server 2 12-09-2009 08:16 AM
Garbage message come during installation of rpm on RHEl 4 amit_pansuria Linux - Enterprise 1 10-04-2009 06:49 PM
Gui dialog box to show a message maginotjr Linux - General 3 02-04-2009 12:22 PM
RPM Installation error message umakar2000 Linux - Newbie 2 08-19-2002 08:21 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration