Sponsored Content
Operating Systems Linux Red Hat How to update all rpms using single command option Post 302340517 by TonyFullerMalv on Monday 3rd of August 2009 05:26:01 PM
Old 08-03-2009
If you had all the updated RPM files in your current folder you can run something like:
Code:
# rpm --freshen -vh *.rpm

By using freshen option to the rpm command then only the RPMs you have installed will get updated, RPMs in the folder for software that you do not have installed will not get applied, very useful.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

rpms vs make

Ok, this is probably a real simple question....I have RH 7.1 and i wanted to know do I have to install the RPM packages for software or can i use the binaries and do make ...make install. ?? (6 Replies)
Discussion started by: macdonto
6 Replies

2. UNIX for Dummies Questions & Answers

option for ls command

i'm using SunOS 5.7 and I know theres a ls option for seeing what kind of files are in a directory. I was wondering if there was a ls option that could see if the files are txt or files that can be opened in vi (1 Reply)
Discussion started by: eloquent99
1 Replies

3. Shell Programming and Scripting

How to update a single row in a file with sed

Hi. I want to be able to update only one line in a file that matches a key using sed, but I can't seem to get this (the key is right at the beginning of each row) Here is what I have tried so far, but every row is being updated. I want the end result to be that the input file only has the single... (6 Replies)
Discussion started by: brendanf
6 Replies

4. Red Hat

get default rpms on RH4 for Oracle 9i

Hi all, please advise. i need to install Oracle 9i database on RHES4 and i've totally screwed up with RPMs trying to install the wrong (i386) on 64bit machine. my question is: how do i can get back to the whole default bunch of RPMs and start from the beginning? (1 Reply)
Discussion started by: MarGur
1 Replies

5. Solaris

patch update with single user mode

Hi All, How do I execute patch update on a single user mode? Please give me the steps by step procedures? Is single user mode the same as run level 1? Thanks. (2 Replies)
Discussion started by: itik
2 Replies

6. Shell Programming and Scripting

-F option and - V in a single awk statment

Please let me know if I can use -F option and - V in a single awk statment. I want to import some comma separated shell variables using -F option and defining some static variables inside awk using -v option. (2 Replies)
Discussion started by: kalee
2 Replies

7. Solaris

Update single zone in alternate boot environment.

I 'm having a weired situation my system has 8 zones, running fine on solaris x86_u4. I installed the live upgrade bundle patch and did a live upgrade. The new BE was created but it missed one of the zone and now if i mount the new BE i do not see that zone in the environment so my question is how... (3 Replies)
Discussion started by: fugitive
3 Replies

8. UNIX for Dummies Questions & Answers

Building single rpm from 2 different rpms?

Hi all, I have to automate server installation. For this its needed to install 2 - 3 different RPMs. Is there any way of creating a single rpm from these two rpms? How the spec file will look like? thanks... (0 Replies)
Discussion started by: zing_foru
0 Replies

9. Shell Programming and Scripting

Update single line

Hi everyone i need one help don't know whether it is simple or difficult but not able to solve it. here is the problem suppose my code is time_def=3 r=0 while ] do echo "time left is $time_def " ((time_def=time_def-1)) done and the output is time left is 3 time left... (6 Replies)
Discussion started by: aishsimplesweet
6 Replies

10. Red Hat

What is RPMs?

Would you please give us the definition and usage of RPMs in linux? thanks to reply.... (1 Reply)
Discussion started by: jaydul
1 Replies
RPMSPEC(8)						      System Manager's Manual							RPMSPEC(8)

NAME
rpmspec - RPM Spec Tool SYNOPSIS
QUERYING SPEC FILES: rpmspec {-q|--query} [select-options] [query-options] SPEC_FILE ... select-options [--rpms] [--srpms] query-options [--qf,--queryformat QUERYFMT] [--target TARGET_PLATFORM] QUERY OPTIONS The general form of an rpm spec query command is rpm {-q|--query} [select-options] [query-options] You may specify the format that the information should be printed in. To do this, you use the --qf|--queryformat QUERYFMT option, followed by the QUERYFMT format string. See rpm(8) for details. SELECT OPTIONS --rpms Operate on the binary package header(s). --srpm Operate on the source package header(s). SEE ALSO
popt(3), rpm(8), rpmdb(8), rpmkeys(8), rpmsign(8), rpm2cpio(8), rpmbuild(8), rpmspec --help - as rpm supports customizing the options via popt aliases it's impossible to guarantee that what's described in the manual matches what's available. http://www.rpm.org/ <URL:http://www.rpm.org/> AUTHORS
Marc Ewing <marc@redhat.com> Jeff Johnson <jbj@redhat.com> Erik Troan <ewt@redhat.com> Panu Matilainen <pmatilai@redhat.com> Red Hat, Inc 29 October 2010 RPMSPEC(8)
All times are GMT -4. The time now is 08:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy