Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

what is the easiest way to automatically install a package during the installation of a suse (Linux) OS?

Posted on 2011-03-17
4
Medium Priority
?
664 Views
Last Modified: 2013-12-15
I have a shell script that I copied to my bin folder (see below). I would like to be able to run my script during installation of my on SUSE (Linux) OS. Although my command work when I run them manually from root. They do not work when I run them from root by typing "#sh MyScript.sh" (without quotes).  
My script errors during the “cd /var..” command and say it is unable to find the file or directory.
Could someone tell me, what is the easiest way to automatically install a package during the installation of a suse (Linux) OS? Should I use a shell script to run the rpm commands or should I try to edit the root/autoinst.xml?  


--myScript.sh---

#!/bin/bash
echo "starting..."
cd /var/os/suse/x86_64/
rpm -Uvh jpackage-utils-1.7.5-14.6.x86_64.rpm
rpm -Uvh unixODBC-2.2.12-198.17.x86_64.rpm
echo " "
echo "End install..."
0
Comment
Question by:bojeff30
  • 3
4 Comments
 

Accepted Solution

by:
bojeff30 earned 0 total points
ID: 35168535
no comment
0
 

Author Closing Comment

by:bojeff30
ID: 35168538
yes
0
 

Author Comment

by:bojeff30
ID: 35168548
issue is close
0
 
LVL 62

Expert Comment

by:gheist
ID: 35169199
Finaly experts got notice to help you but you do not seem to need it.
I would propose to go about RTFM-ing before shouting RPM:
http://doc.opensuse.org/products/opensuse/openSUSE/opensuse-reference/

(part about zypper is written by somebody generous to fit your purpose)
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month11 days, 17 hours left to enroll

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question