Hot answers tagged

5

You need to install one of the devtoolset packages via yum. I recommend devtoolset-8 as it's the latest and it's what you'll have in Ubuntu. devtoolset-6 and devtoolset-7 also have it if you prefer one of those. First, make sure that the rhel-server-rhscl-7-rpms repos is enabled. You can just enable them all: subscription-manager repos --enable rhel* ...


3

As Kusalananda comments, fstab cannot interpret embedded shell commands, resulting in your fstab causing this error. With regards to your comment about cut/paste - I understand that typing in a uuid is daunting and likely error prone, but you could simply append the uuid to the end of your fstab by executing: blkid -o value -s UUID >> /etc/fstab ... ...


2

Yes, yumdownloader can be used to download individual RPMs. man page can be found here : https://linux.die.net/man/1/yumdownloader The "downloadonly" plugin may be of interest, more details at https://access.redhat.com/solutions/10154 To download a specific advisory, you'd use: yum update --downloadonly --downloaddir=/tmp --advisory=RHSA-2017:1308


2

There have been a few enhancements to the yum clean all workings in the past (most notably https://bugzilla.redhat.com/show_bug.cgi?id=1357083) but you are absolutely right that there are edge cases where yum clean all just doesn't do its job properly. rm -rf /var/cache/yum, albeit nasty, does the trick every time. The man page has a short message on ...


2

You cannot just copy a kernel module from a newer kernel version to a system using an older kernel. Sometimes you can use an older driver module with a newer kernel (with certain limitations) but not vice versa. And the lack of USB 3 support is only the first of the problems you're likely to encounter: you might find that the old 5.1 kernel won't even ...


2

So, you have this: $ foo() { echo "$FOO"; } $ FOO=bar foo bar So: $ env FOO=bar foo env: foo: No such file or directory Where is env looking for the command? info man declares: The first operand that does not contain the character '=' specifies the program to invoke; it is searched for according to the 'PATH' environment variable. Hmm. Well, foo ...


2

I think there are a few issues with your code. First off, if you want the output of a command to be stored in a string, you can encase the command with the $() syntax like so: RESULT=$(find /proc -maxdepth 1 -user gen17 -type d -mmin +120 | wc -l) Next, tt looks like you made a mistake on your if statement. You have the whole thing in quotes, which makes ...


1

Your construct is the single string containing the value of $RESULT and the literal text -ge 1; this is then implicitly checked against zero length. Because the string is never going to be zero length the test returns 1. [ "$RESULT -ge 1" ] I think what you need is this [ "$RESULT" -gt 1 ]


1

Something like this in your sshd_config file should do what you want: AllowTcpForwarding off ... Match user user1,user2,user3 AllowTcpForwarding on This will permit TCP forwarding for the three listed users. See sshd_config Match for more details about how the Match directive works and which options can be set in a match block.


1

If you have zsh available, you could do this with its zstat module: zmodload zsh/stat for f in *.txt do cp -p -- "$f" $(zstat -F %d +mtime "$f")/ done The zstat -F %d +mtime command asks for the formatted output (-F %d) of the day-of-the-month of the files' modification times. The resulting decimal number is in the range 01 to 31, and is used as the ...


1

If the individual fields don't have spaces in them (which seems to be the case here), you can pipe to column -t to create a nice table of the output: ~ cat file | column -t Average: DEV tps rd_sec/s wr_sec/s avgrq-sz avgqu-sz await svctm %util Average: sdb 2.01 5.85 143.09 74.18 0.00 1.18 ...


1

Use presto-admin server status on each node to generate a status report. Query repeatedly each of your 763 nodes for that staus. Sort the result on the node URL and throw away all but the latest status. Turn that into HTML with a script. Generate an HTML page to display which might look something like this by perpetually refreshing an HTML page which draws ...


1

Understanding the various RHEL .iso files boot.iso Used to install the operating system from another source (such as a http repository of the binary files). Can also be used to enter Rescue Mode. Binary DVD The discs required to install and use Red Hat Enterprise Linux. Can also be used to enter Rescue Mode.


Only top voted, non community-wiki answers of a minimum length are eligible