Sponsored Content
Top Forums Shell Programming and Scripting Automatic updating not working Post 302597615 by projektt on Friday 10th of February 2012 09:56:56 PM
Old 02-10-2012
Automatic updating not working

I'm using VMWare with my Linux and this is the command i'm using in shell to write the automatic update. trying to find and install the updates but nothing happens or it crashes.

#!/bin/bash
yum update yum
yum check-update
yum update
yum clean packages

What exactly am I doing wrong?

Last edited by projektt; 02-10-2012 at 11:02 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

automatic su

Hi all, Suppose I have a script under user A, which calls a script under user B (this script should be run using user B). How can I change the user (along with supplying the password) automatically in the script (a command similar to su)? Thank you in advance Best Regards (1 Reply)
Discussion started by: omran
1 Replies

2. Shell Programming and Scripting

Automatic sftp

Hi, Is there a way to automatically SFTP like automatic FTP option used below ftp -nv hostname << DONE user username password get file quit DONE If yes please let me know the script. :rolleyes: Thanks, Dayanand. (1 Reply)
Discussion started by: dayanand
1 Replies

3. Shell Programming and Scripting

awk updating one file with another, comparing, updating

Hello, I read and search through this wonderful forum and tried different approaches but it seems I lack some knowledge and neurones ^^ Here is what I'm trying to achieve : file1: test filea 3495; test fileb 4578; test filec 7689; test filey 9978; test filez 12300; file2: test filea... (11 Replies)
Discussion started by: mecano
11 Replies

4. Shell Programming and Scripting

Script not working in cron but working fine manually

Help. My script is working fine when executed manually but the cron seems not to catch up the command when registered. The script is as follow: #!/bin/sh for file in file_1.txt file_2.txt file_3.txt do awk '{ print "0" }' $file > tmp.tmp mv tmp.tmp $file done And the cron... (2 Replies)
Discussion started by: jasperux
2 Replies

5. Red Hat

Nslookup working but ping not working at windows client

Hi Team we have created a DNS server at RHEL6.2 environment in 10.20.203.x/24 network. Everything is going well on linux client as nslookup, ping by host etc in entire subnet. We are getting problem in windows client as nslookup working as well but not ping. all the firewall is disabled and... (5 Replies)
Discussion started by: boby.kumar
5 Replies

6. Shell Programming and Scripting

Automating pbrun /bin/su not working, whenever manually it is working using putty

I am trying to automate a script where I need to use pbrun /bin/su but for some reason it is not passing thru the pbrun as my code below. . ~/.bash_profile pbrun /bin/su - content c h 1 hpsvn up file path I am executing this from an external .sh file that is pointing to this scripts file... (14 Replies)
Discussion started by: jorgejac
14 Replies

7. Red Hat

Automatic logout

Hello, I have this issue on a new server I just built. It is a RHEL 6.7 build. I use VNC to connect to the server from my windows machine. When I login to the Server in morning using VNC I get this error: "Automatic logout, this session is configured to log out after a period of inactivity. I... (0 Replies)
Discussion started by: bitlord
0 Replies

8. Ubuntu

16.04 not updating

Just installed the latest version on my hp stream, was tired of windows. Of the few times I've used Linux, this is the first time it won't update. Im connected to the net the updater recognizes that the OS needs 21 updates. But it won't download/install the updates. It also won't load the... (1 Reply)
Discussion started by: DabblingMadman
1 Replies

9. Shell Programming and Scripting

Working web service call not working with curl

Hello, Newbie here, I have a perfectly well working web service call I can issue from chrome (PC Windows 10) and get the results I want (a dimmer being turned on in Fibaro Home Center 2 at level 40) I am not allowed to post urls but the below works with http and :// and... (3 Replies)
Discussion started by: abigbear
3 Replies

10. Shell Programming and Scripting

Disk Space Utilization in HTML format working in one environment and not working on the other

Hi Team, I have written the shell script which returns the result of the disk space filesystems which has crossed the threshold limit in HTML Format. Below mentioned is the script which worked perfectly on QA system. df -h | awk -v host=`hostname` ' BEGIN { print "<table border="4"... (13 Replies)
Discussion started by: Harihsun
13 Replies
yum-filter-data(1)														yum-filter-data(1)

NAME
yum filter data plugin SYNOPSIS
yum [options] [command] [package ...] DESCRIPTION
This plugin extends yum with some options, currently just for "update" and "list update" type commands, to allow filters to be placed on which packages should be used based on the data in those packages. Note that due to some of the data being unknown, and thus could possibly match, all unknown data is treated as a match. GENERAL OPTIONS
These are the options added to yum that are available in the "list updates", "info updates", "check-update" and "update" commands. They are: --filter-vendors This option includes packages which have a vendor which matches one of the passed vendor wildcard strings, or is unknown. Note that vendors can have spaces in their value, so "," is the only way to specify multiple vendors as one option argument. --filter-rpm-groups This option includes packages which have a group which matches one of the passed rpm group wildcard strings, or is unknown. Note that rpm groups can have spaces in their value, so "," is the only way to specify multiple rpm groups as one option argument. --filter-packagers This option includes packages which have a packager which matches one of the passed packager wildcard strings, or is unknown. Note that vendors can have spaces in their value, so "," is the only way to specify multiple packagers as one option argument. --filter-licenses This option includes packages which have a license which matches one of the passed license wildcard strings, or is unknown. Note that licenses can have spaces in their value, so "," is the only way to specify multiple licenses as one option argument. --filter-arches This option includes packages which have a arch which matches one of the passed arch wildcard strings, or is unknown. --filter-committers This option includes packages which have a committer which matches one of the passed committer wildcard strings, or is unknown. Note that committers can have spaces in their value, so "," is the only way to specify multiple committers as one option argument. Also, committer values are so loosely formed that they could contain commas too, it is recommended to not do that but you can work around it by using "?". --filter-buildhosts This option includes packages which have a buildhost which matches one of the passed buildhost wildcard strings, or is unknown. --filter-urls This option includes packages which have a url which matches one of the passed url wildcard strings, or is unknown. --filter-package-sizes This option includes packages which have a packagesize which is within one of the passed packagesize ranges, or is unknown. --filter-archive-sizes This option includes packages which have a archivesize which is within one of the passed archivesize ranges, or is unknown. --filter-installed-sizes This option includes packages which have a installedsize which is within one of the passed installedsize ranges, or is unknown. --filter-groups This option includes packages which are in a yum group which matches one of the passed yum group id strings, or is unknown. Note that yum groups can have spaces in their value, so "," is the only way to specify multiple yum groups as one option argument. EXAMPLES
To list all updates that are 1 MB or less use: yum --filter-package-sizes=-1m check-update To apply updates that Dan Walsh has committed use: yum --filter-committers='Dan Walsh *' update To list updates for a specific group use: yum --filter-rpm-groups='App*/Sys*' list updates To apply updates to a specific set of groups use: yum --filter-rpm-groups='App*/System,Devel*/Lib*,System Environment/Base' update To list updates for a set of yum groups use: yum --filter-groups='PostgreSQL Database,Web Server' list updates To apply updates to a specific set of yum groups use: yum --filter-groups='KDE,Core,Printing Support' update SEE ALSO
yum-list-data (1) yum (8) yum.conf (5) AUTHORS
James Antill <james.antill@redhat.com>. BUGS
Currently yum can't filter packages in all of the commands, so for instance "yum list 'yum*'" doesn't get the results filtered. Apart from that there are no bugs, but should you find any, you should first consult the FAQ section on http://yum.baseurl.org/wiki/Faq and if unsuccessful in finding a resolution contact the mailing list: yum-devel@lists.baseurl.org. To file a bug use http://bugzilla.red- hat.com for Fedora/RHEL/Centos related bugs and http://yum.baseurl.org/report for all other bugs. James Antill 04 February 2008 yum-filter-data(1)
All times are GMT -4. The time now is 10:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy