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
648 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

813 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

18 Experts available now in Live!

Get 1:1 Help Now