Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

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
?
662 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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

688 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