Hot answers tagged

5 votes
Accepted

How to upgrade sed on RHEL 8?

You can’t install Fedora packages on RHEL. Instead of trying to upgrade your sed, since you only want a newer version for its debugging capabilities, I recommend running a container: sudo yum install ...
user avatar
4 votes
Accepted

sed or other equivalent for grep with vfF

With awk, making sure you only look for those strings wherever they're meant to be. awk '!source {stem[$0]; next} ! (substr($0, 225, 13) in stem) ' stem.txt source=1 source.txt > ...
user avatar
2 votes

sed or other equivalent for grep with vfF

Another way is to create dynamically the EREs, to start matching at the 225th position, with some help from sed, and grep for these EREs: grep -vEf <(sed 's/.*/^.{224}&/' stem.txt) source.txt ...
user avatar
  • 5,838
1 vote
Accepted

Rocky 8.5 - Alternate repo for sshpass, removed from EPEL

Old versions of EPEL are still available so you can try to use the 8.5 archived version: https://dl.fedoraproject.org/pub/archive/epel/8.5.2022-05-10/Everything/x86_64/
user avatar
1 vote

Need to run a database shutdown script before RHEL 7 is rebooted

Why don't you start and stop the DB as a service and let systemd do the rest? [Unit] Description=myDB After=network-online.target nss-lookup.target Wants=network-online.target nss-lookup.target [...
user avatar
1 vote

Python not able to see environment variable in RHEL

os.environ.get()will only retrieve the value of environment variables (env-var), accessible to the process where retrieval is taking place. If your process is a daemon (as in a process launched by ...
user avatar
  • 2,229
1 vote
Accepted

No networkmanager service on RHEL 7.9

Try: systemctl daemon-reload systemctl status NetworkManager # start if it is there systemctl start NetworkManager If it doesn't work check unit files: systemctl list-unit-files | grep -i network If ...
user avatar
  • 26
1 vote
Accepted

cannot read repomd.xml

You have a typo - BaseOs vs BaseOS. Fix your repo file to match the DVD filesystem. Here's your error message: Couldn't open file /mnt/cdrom/BaseOs/repodata/repomd.xml Here's the ls command: ls -lh /...
user avatar
  • 88.6k
1 vote

Fedora: Citrix ICAClient SSL Error 61

In your browser goto the site where you launch your citrix session from and click on the padlock widget on far left part of the url -> click on "Connection is secure" ______ on chrome ...
user avatar
1 vote

Open default text editor from terminal

For the users who got here by Google search looking for a different answer, who want want to stay in the terminal: check to see if there's a defined editor, then try something else, like nano file, or ...
user avatar
  • 21

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