08-26-2015
Actually I want to uninstall/install a package using yum through shell scripting.
I tried using the above mentioned command but didn't work for me.
can you please send a proper code written in shell scripting?
I'll be highly thankful for your cooperation.
10 More Discussions You Might Find Interesting
1. Red Hat
Can anyone explain me the use of Yum command in Red hat. Even the rpm command is same as yum command. Let me know if any difference between yum and rpm (1 Reply)
Discussion started by: rogerben
1 Replies
2. Shell Programming and Scripting
i want to search in the current directory all the files that contain one word for example "hello"
i want to achieve it with the grep command but not with the grep * (2 Replies)
Discussion started by: aintour
2 Replies
3. Shell Programming and Scripting
Hello to everyone:)
This probably is a simple question here(hopefully), but i am trying to learn python, and after much googling cannot find an answer.
How can i get yum command to work in the example below
Hopefully this is in the right section, if not i apologise
Dave (2 Replies)
Discussion started by: dave100
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I would like to know the difference between YUM UPDATE and YUM UPGRADE. The man pages say upgrade is same as update with the obsolete option. And by default it says the obsolete option is turned on, which would make them equivalent. Does not say what obsolete does.
Can someone please... (3 Replies)
Discussion started by: mojoman
3 Replies
5. Linux
Any one know of a way to do a yum -install and draw the argument of what to install from a text file?
I have a huge list of rpms that I have to install on a bunch of machines and I would like to run one script that goes to each machine and installs all rpms in the list I have. (2 Replies)
Discussion started by: rd42
2 Replies
6. Shell Programming and Scripting
I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found"
My code is as follows:
--------------------------
#!/bin/sh
user="test"
DIR="/bldtmp/"$user
VIEW="test.view1"
echo "TMPDIR before export... (4 Replies)
Discussion started by: dchoudhury
4 Replies
7. Shell Programming and Scripting
I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist.
diff=$1$2.diff
id=$2 new=new_$diff
echo "My id is $1"
echo "I want to sync for user account $id"
##awk command I am using is as below
cat $diff | awk... (2 Replies)
Discussion started by: Ashunayak
2 Replies
8. Solaris
I am using solaris 10
yum command not found
apt-get install command not found
rpm command not found
how to use yum and apt-get command in solaris
how to install dhcp, openldap-servers packages in solaris (4 Replies)
Discussion started by: ainstin
4 Replies
9. UNIX for Advanced & Expert Users
i having this error message when installing a package using yum on red hat 7.2
Please see attachment (21 Replies)
Discussion started by: DOkuwa
21 Replies
10. UNIX for Beginners Questions & Answers
I have downloaded RHEV-H 4.2 Red Hat Virtualization - Red Hat Customer Portal (RHVirtualization 4.2 Host and Manager iso). I uploaded the image and installed on an HP G9 server baremetal.
I found I dont have a WAN/net connectivity later on HPG9 server. How can I still install virt-manager on... (1 Reply)
Discussion started by: Paras Pandey
1 Replies
LEARN ABOUT DEBIAN
dtc_install_centos
dtc_install_centos(8) System Manager's Manual dtc_install_centos(8)
NAME
dtc_install_centos - bootstrap a CentOS install to use in a chroot or VM
SYNOPSIS
dtc_install_centos <install root> <yum environment>
DESCRIPTION
This shell script is part of the dtc-xen package, generally to be used by the dtc panel to install a new a Xen VPS server. This script is
called by dtc_reinstall_os when the user chooses to install the CentOS operating system.
How it works: it generates a temporary yum configuration in the yum environment directory, that directs yum to act inside the install root
instead of in the base system; then it kindly requests yum to install the basesystem, centos-release and yum packages onto it. Yum then
uses the configuration to download the required (usually, security-updated) packages and then perform the RPM installation process under
the install root.
It requires both RPM and yum. It does work under Debian (it was developed in Ubuntu first). It should also work on RPM-based systems
without destroying the system-wide RPM and yum configurations.
OPTION
<install root>
Target directory where CentOS will be deployed. Must exist beforehand.
<yum environment>
Directory where yum will store the repository manifests and configuration. Will be automatically created. Cached RPMs and manifests will
be left, as usual, in a directory var/cache/yum inside the install root.
EXAMPLE
dtc_install_centos /root/yum /xen/13
This will setup the operating system in /xen/13, with the CentOS configuration folder in /root/yum.
BUGS
It's limited to CentOS 5 at the moment.
It must be run as root.
Under some circumstances, the installation process itself may kill processes running on the host machine. The chroot yum does should be
sufficient to avoid this, but we haven't been able, yet, to ascertain why this fails sometimes.
SEE ALSO
dtc_reinstall_os(8)
VERSION
This documentation describes dtc_install_os version 0.3.1.
See http://www.gplhost.com/software-dtc-xen.html for updates.
dtc_install_centos(8)