08-31-2012
get total number of packages installed?
Hi,
Which command would tell me of how many total number packages installed on my Redhat?
Thank you,
Lam
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi have following file
|abcd
2|abcd
|sdfh
|sdfj
I want to find total number of files haivng nothing in feild 1 using awk
will command
awk -F "|" '( $1=="") {print NR}' test_awk
will work??? (4 Replies)
Discussion started by: mahabunta
4 Replies
2. Shell Programming and Scripting
Hi ,
How about find the total number of lines in a file ?
How can i do that with the "grep" command ? (9 Replies)
Discussion started by: Raynon
9 Replies
3. Shell Programming and Scripting
Hello, I need help in appending the line number of each line to the file and also to get the total number of lines. Can somebody please help me.
I have a file say:
abc
def
ccc
ddd
ffff
The output should be:
Instance1=abc
Instance2=def
Instance3=ccc
Instance4=ddd
Instance5=ffff
... (2 Replies)
Discussion started by: chiru_h
2 Replies
4. UNIX for Advanced & Expert Users
i want to know the update packages that i have installed on my solaris 9 (2 Replies)
Discussion started by: MONMON
2 Replies
5. Shell Programming and Scripting
Input file
SFSQW 5192.56
HNRNPK 611.486
QEQW 1202.15
ASDR 568.627
QWET 6382.11
SFSQW 4386.3
HNRNPK 100
SFSQW 500
Desired output file
SFSQW 10078.86 3
QWET 6382.11 1
QEQW 1202.15 1
HNRNPK 711.49 2
ASDR 568.63 1
The way I tried: (2 Replies)
Discussion started by: patrick87
2 Replies
6. HP-UX
Hello people,
On HP-UX B.11.11 U 9000/800
How can I have in aprox. the total number of files in a specific FS?
Is the number of used inodes a rough estimation of my total number of files?
Server1 /Data:df -i .
/Data (/dev/vg_Data/lvol1 ) : 18292960 total i-nodes
15800945 free... (3 Replies)
Discussion started by: drbiloukos
3 Replies
7. AIX
Hi anyone can help?
How to calculate total number of weeks from a specify date, for example, 01 Jan 2012.
Thx!
https://www.unix.com/images/misc/progress.gif (1 Reply)
Discussion started by: rayray2013
1 Replies
8. Red Hat
Hi,
i am trying to grab all the installed packages on linux machine,and only want to grab "Name" "Version" "Release" "Vendor" information
i am using below command to do so :
rpm -qa --info | grep -e 'Name' -e 'Version' -e 'Release' -e 'Vendor'
the output contains lot other info... (3 Replies)
Discussion started by: omkar.jadhav
3 Replies
9. UNIX for Dummies Questions & Answers
Hello All,
SuSE 11 SP3 (*3.0.101-0.47.71-default, x86_64)
I was attempting to install a MySQL update on a web server we use for internal stuff within the network. Since the OS didn't come with an update in the pre-installed repos, I went to MySQL's site and found a Repo for my OS version at... (0 Replies)
Discussion started by: mrm5102
0 Replies
10. Shell Programming and Scripting
So I've worked how to add page numbers based on regex. It's using the footer text.
How do we get the total amount added so we have page number with the total number of pages?
Desired output: Page No:1 of 5
Thanks in advance. (15 Replies)
Discussion started by: tugar
15 Replies
LEARN ABOUT CENTOS
show-installed
show-installed(1) show-installed(1)
NAME
show-installed - show installed RPM packages and descriptions
SYNOPSIS
show-installed [options]
DESCRIPTION
show-installed gives a compact description of the packages installed (or given) making use of the comps groups found in the repositories.
OPTIONS
-h, --help
show this help message and exit
-f FORMAT, --format=FORMAT
yum, kickstart or human; yum gives the result as a yum command line; kickstart the content of a %packages section; "human" readable
is default.
-i INPUT, --input=INPUT
File to read the package list from instead of using the rpmdb. - for stdin. The file must contain package names only separated by
white space (including newlines). rpm -qa --qf='%{name}
' produces proper output.
-o OUTPUT, --output=OUTPUT
File to write the result to. Stdout is used if option is omitted.
-q, --quiet
Do not show warnings.
-e, --no-excludes
Only show groups that are installed completely. Do not use exclude lines.
--global-excludes
Print exclude lines at the end and not after the groups requiring them.
--global-addons
Print package names at the end and not after the groups offering them as addon.
--addons-by-group
Also show groups not selected to sort packages contained by them. Those groups are commented out with a "# " at the begin of the
line.
-m, --allow-mandatories
Check if just installing the mandatory packages gives better results. Uses "." to mark those groups.
-a, --allow-all
Check if installing all packages in the groups gives better results. Uses "*" to mark those groups.
--ignore-missing
Ignore packages missing in the repos.
--ignore-missing-excludes
Do not produce exclude lines for packages not in the repository.
Florian Festi 21 October 2010 show-installed(1)