LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-10-2004, 10:06 AM   #1
jimwelc
Member
 
Registered: Nov 2004
Location: Boston
Posts: 30

Rep: Reputation: 15
RPM newbie


Hello All,

I am a newbie to the Linux flavors and I am attempting to create an installer using RPM and was hoping someone might be able to answer a questions since I have run into very limited documentation on the mechanism.

I have created an *.rpm file containing my application but at install time I was wonder if there was a way of exluding certain files via the CLI(similar to "tar --exclude=")

Any help you can proved would be greatly appreciated.

Best Regards,
-Jim
 
Old 11-10-2004, 10:57 AM   #2
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 432
Blog Entries: 1

Rep: Reputation: 45
well, it depends of the reason of excluding the files.

If it's because there can be another package containing them you can check in your .spec file if some rpm is installed on the system.
You can require any program.

For any other reason, I'm not sure, but creating more than one rpm package, or running a program in the %pre or %post part of the spec file could help the user choosing the packages to install.

check
http://www.rpm.org/RPM-HOWTO/
or
http://qa.mandrakesoft.com/twiki/bin/view/Main/RpmHowTo

if the rpm is for mandrake

hope this helps.
 
Old 11-10-2004, 01:08 PM   #3
jimwelc
Member
 
Registered: Nov 2004
Location: Boston
Posts: 30

Original Poster
Rep: Reputation: 15
RPM newbie

Hello aizkorri,

Thank you for your reply and web site pointers. Basically I am trying to create a package (single RPM) that has two features or components. Meaning I have 4 files that I treat as one feature and 2 other files that I treat as a separate feature. I would like to either be able to state explictly via the RPM CLI which file to install or even better which files to exclude. Currently I have 2 rpms, one for each feature but in that case I duplicated my support issues. Plus all these files are really one product, and just a couple of them exist to only add additional functionality to the whole.

Best Regards,
-Jim
 
Old 11-11-2004, 03:29 AM   #4
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 432
Blog Entries: 1

Rep: Reputation: 45
Hi,
well, as fas as I know (not too much ), there's not any option in the RPM CLI for choosing the files to install.

you could (just a suggestion):
Make a basic package that has a script in
%post(whatever is here will be executed after installation)
that tells the user that there's another feature if you install whatever.rpm

Then create a second package, that requires the first one, only with the other two files.

There should be a better option but nothing else comes to my mind.

Good luck.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
newbie opening .rpm none1983 Linux - Software 1 05-25-2005 08:09 PM
Newbie RPM question johngcarlsson Mandriva 2 07-17-2004 03:45 PM
how to uninstall rpm [i'm newbie] vanhelsing Linux - Software 2 05-27-2004 01:11 AM
Opera RPM and a newbie webwolf70 Linux - Software 3 02-23-2004 11:55 AM
NEWBIE; How to install RPM programs? HiOctane21 Linux - Software 4 02-13-2004 04:39 PM


All times are GMT -5. The time now is 10:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration