Find which RPM Azure repo is used in "yum repolist" for EUS or non EUS repos
Hello,
I'm looking for help with a script or ideally just a one line command perhaps that will check the results of yum repolist and look for a specific repo on a sever. We have some VM's using EUS repos from Red Hat and others that do not use EUS repos. The way we would see which repos are used is by issuing the yum repolist command.
Result #1 where EUS repos are used:
Result #2 where EUS is not used:
As you can see Result #1 has rhui-microsoft-azure-rhel7-EUS and Result #2 has rhui-microsoft-azure-rhel7.
is there a one line command I can issue that would provide True or False or provide the repo ID for a server?
Thank you in advance for any advice you can provide for me.
Dear friends,
please tell me how to find the files which are existing in the current directory, but it sholud not search in the sub directories..
it is like this,
current directory contains
file1, file2, file3, dir1, dir2
and dir1 conatins
file4, file5
and dir2 contains
file6,... (9 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
I want to list all files/lines which except those which contain the pattern ' /proc/' OR ' /sys/' (mind the leading blank).
In a first approach I coded:
find / -exec ls -ld {} | grep -v ' /proc/| /sys/' \; > /tmp/list.txt
But this doesn't work. I got an error (under Ubuntu):
grep:... (5 Replies)
Hello everyone
Sorry I have to add another sed question. I am searching a log file and need only the first 2 occurances of text which comes after (note the space) "string " and before a ",". I have tried
sed -n 's/.*string \(*\),.*/\1/p' filewith some, but limited success. This gives out all... (10 Replies)
I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
I am new to bash/shell scripting.
I want to find all the files in directory and subdirectories, which are not ends with “.zip” and which are contains in the file name “*.log*” or “*.out*”.
I know below command to get the files which ends with “.log”; but I need which are not ends with this... (4 Replies)
These three finds worked as expected:
$ find . -iname "*.PDF"
$ find . -iname "*.PDF" \( ! -name "*_nobackup.*" \)
$ find . -path "*_nobackup*" -prune -iname "*.PDF"
They all returned the match:
./folder/file.pdf
:b:
This find returned no matches:
$ find . -path "*_nobackup*" -prune... (3 Replies)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
I am trying find files in sub dir with certain tags using tag command, and add the period to the beginning. I can't use chflags hidden {} cause it doesn't add period to the beginning of the string for web purpose. So far with my knowledge, I only know mdfind or tag can be used to search files with... (6 Replies)
Discussion started by: Nexeu
6 Replies
LEARN ABOUT CENTOS
yum-changelog.conf
YUM-CHANGELOG.CONF(5) File Formats YUM-CHANGELOG.CONF(5)NAME yum-changelog.conf(5)SYNOPSIS yum-changelog.conf(5) is the configuration file for yum-changelog(1) Yum plugin for viewing package changelogs before/after updating. By
default, this plugin will show the changelogs before the updates.
FILES
/etc/yum/pluginconf.d/changelog.conf
FILE FORMAT yum-changelog.conf(5) utilizes configuration options in the form of
OPTION=VALUE
OPTION
when This option reflects when yum-changelog(1) will allow changelog viewing during yum updates.
VALUE
pre To make yum-changelog(5) show the changelog before the yum updates
post To make yum-changelog(5) show the changelog after the yum updates.
OPTION
always This option reflects specifies if the changelog should always be shown.
VALUE
true The changelog is always displayed.
false A command line option is required for the changelog to be displayed.
OPTION
updateinfo
This option specifies that the "changelog" from the repo. updateinfo should be shown.
VALUE
true The updateinfo is displayed.
false The updateinfo is never displayed.
OPTION
updateinfo_always
This option reflects specifies if the "changelog" from the repo. should always be shown (note that if updateinfo is false then this
option has no meaning).
VALUE
true The updateinfo is always displayed.
false A command line option is required for the updateinfo to be displayed.
AUTHOR
Chitlesh Goorah <chitlesh@fedoraproject.org>
SEE ALSO yum-changelog(1)
08 FEBRUARY 2007 YUM-CHANGELOG.CONF(5)