LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-13-2016, 07:17 AM   #1
apss_evaluator
Member
 
Registered: Mar 2012
Posts: 115

Rep: Reputation: Disabled
pre install script


Hi linux guru's,
is there a way I can set in pre-install.in on the rpm package to have this steps?

1> check if /opt/opscenter/cfg forlder exists
2> if not cancel the rpm installation
2> if yes continue the rpm installation
 
Old 04-13-2016, 08:25 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,250

Rep: Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432
Quote:
Originally Posted by apss_evaluator View Post
Hi linux guru's,
is there a way I can set in pre-install.in on the rpm package to have this steps?

1> check if /opt/opscenter/cfg forlder exists
2> if not cancel the rpm installation
2> if yes continue the rpm installation
...and putting "rpm pre install script" into Google pulls up, as the VERY FIRST HIT:
http://www.rpm.org/max-rpm/s1-rpm-inside-scripts.html

After being here for FOUR YEARS, and asking many questions about RPM packages, why weren't you able to do this basic bit of research? Read the "Question Guidelines" link in my posting signature.
 
  


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
[SOLVED] Attempting to install Slackware from pre-existing Debian install on a remote server slacker1337 Slackware - Installation 12 11-10-2016 04:17 PM
[SOLVED] Where to run a pre-rc script? displace Debian 5 09-17-2013 11:58 AM
Network broadcast doesn't work in %pre script PeterSteele Red Hat 1 01-18-2013 11:08 PM
Issues creating partitions in %pre script PeterSteele Linux - Virtualization and Cloud 1 10-15-2012 12:13 AM
Does script exist that automates slack install with pre-selectable pkgs? linus72 Slackware 5 05-31-2009 11:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:31 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