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
652 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!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
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.

830 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