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
643 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
Comment Utility
no comment
0
 

Author Closing Comment

by:bojeff30
Comment Utility
yes
0
 

Author Comment

by:bojeff30
Comment Utility
issue is close
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now