18 votes

Yum: How can I view variables like $releasever, $basearch & $YUM0?

Just in case anybody ends up here, like me, looking for the equivalent answer for dnf on Fedora I fathomed out the following python one-liner: python3 -c 'import dnf, pprint; db = dnf.dnf.Base(); ...
sysadmiral's user avatar
  • 1,604
8 votes

Yum: How can I view variables like $releasever, $basearch & $YUM0?

For a full dump you can use: yum config-manager --dump dnf config-manager --dump To dump variables you can use: yum config-manager --dump-variables dnf config-manager --dump-variables yum-config-...
Stephanie's user avatar
6 votes

Yum: How can I view variables like $releasever, $basearch & $YUM0?

And drilling down how $releasever is assigned: The function _getsysver query the rpm database like: rpm -q --provides $(rpm -q --whatprovides "system-release(releasever)") | grep "system-release(...
adrianlzt's user avatar
  • 161
3 votes

Time drift and wrong timezone within NTP configuration

If your /etc/localtime is pointing to /usr/share/zoneinfo/EET, that timezone definition includes European Summer Time (= European DST) and between the last Sunday of March and the last Sunday of ...
telcoM's user avatar
  • 96.9k
3 votes

Why does Red Hat Linux use such an old kernel?

Here is a table of kernel versions used in each RHEL release so far. To summarize: RHEL 2.1 (released in 2002) used kernel version 2.4.9. RHEL 3 (released in 2003, based on RHL 9) used kernel ...
telcoM's user avatar
  • 96.9k
3 votes

How to debug a suspend problem?

If you want only to get when you suspended/resumed the system, you can try this: cat /var/log/syslog | grep 'systemd-sleep' | grep "Suspending\|resumed"; Feb 7 10:44:23 dmatej-lenovo systemd-sleep[...
dmatej's user avatar
  • 191
3 votes

User without a password - how can one login into that account from a non-root account

User with empty password sudo useradd test-user-0 echo test-user-0:U6aMy0wojraho | sudo chpasswd -e su test-user-0 The password prompt still shows unfortunately. But if you just hit enter without ...
Ciro Santilli OurBigBook.com's user avatar
3 votes

User without a password - how can one login into that account from a non-root account

I have user guest which is passwordless. This is its record: guest:U6aMy0wojraho:17057:0:99999:7::: The string "U6aMy0wojraho" is the hashed password of the guest user. When I log in I simply hit ...
Raicho Nikolov's user avatar
2 votes

Chroot gone wrong, can't ssh with user

Try 'mount --bind' the following directories. Make sure you do /dev first then /dev/pts. root-shell> mount --bind /dev /var/jail/dev root-shell> mount --bind /dev/pts /var/jail/dev/pts Regards, ...
David Loh's user avatar
2 votes

How to reduce Volume Group size in LVM?

Previous answers helped me solve this problem, but I needed to automate it and so wrote pvshrink # ./pvshrink /dev/vda2 Moving 50 blocks from 714 to 664 /dev/vda2: Moved: 4.00% /dev/vda2: Moved: ...
pdw's user avatar
  • 21
2 votes

Yum: How can I view variables like $releasever, $basearch & $YUM0?

For CentOS 8 Stream, which uses more variables like $stream - you can also do this:- # cd /etc/dnf/vars;grep . * which reveals them thusly:- contentdir:centos infra:stock stream:8-stream
cnd's user avatar
  • 209
2 votes
Accepted

Python 2.7 install on Scientific Linux 6 via SCL devtoolset

You should verify that python27 is coming from SCL and not elsewhere. In my case I am using CentOS 6, but the process is the same. So: $ yum info python27 Loaded plugins: fastestmirror, ...
Stephen Harris's user avatar
2 votes

How to install SL5?

Before proceeding please take a moment to understand the Scientific Linux releases and what you can and can't do while upgrading from one to another: https://www.scientificlinux.org/documentation/faq/...
ChanganAuto's user avatar
2 votes

How to remove acpi warnings

According to RHEL documentation: This message is informational only. It does not indicate anything is wrong and can be safely ignored. Root Cause The system hardware defines a 32-bit register size ...
Șerban's user avatar
  • 21
1 vote
Accepted

Moving away from Scientific Linux

Do I even need to format the /home partition? You don't need to, but... If I don't format it and use the same usernames, will my ~/ Folder find its way back? Yes. But the format and options of ...
markgraf's user avatar
  • 2,860
1 vote
Accepted

How can I make a script that opens terminal window, executes commands in it and remains open on Scientific Linux?

The terminal will close after the command is completed. To leave the terminal open, I generally prevent the script from completing, e.g. with a prompt as follows: while [[ \$response != q ]]; do read ...
Sparhawk's user avatar
  • 20k
1 vote

How does scientific linux 7 get updates while it's based on RHEL 7?

Scientific Linux is a rebuild of RHEL (permitted by the RHEL license). Updates are received via the SL channel. Fermilab, the makers of SL, does not offer support to the general public. Clearly ...
dr_'s user avatar
  • 29.7k
1 vote

you haven't created a /boot/efi partition

As MichaelBay mentioned, your EFI partition needs to be formatted with FAT32. However, I understand that the way it's mounted can be confusing. Especially since it can be distro-specific. According ...
Emmanuel Rosa's user avatar
1 vote

Updating GFortran on Scientific Linux 7?

Please edit as necessary. And thank you Knud Larson for the reference repo packages. In order for my version of to SL7 to even see a more recent version of GFortran to download, I attempted to ...
lori's user avatar
  • 31
1 vote

Updating GFortran on Scientific Linux 7?

If the package manager installed is yum (I noticed it in your question's tags), you can use the following to update GNU Fortran to the latest version available: $ yum update gcc-gfortran
aliceinpalth's user avatar
  • 1,613
1 vote

Can't monitor Kickstart post-install log

Redirect your output to /dev/pts/0 instead.
Andy's user avatar
  • 11
1 vote

Why this awk command prints output twice

you are running your transformation NF times for every line. Your input has two fields, so it doubles every line of your output. Try removing the for loop entirely and check if the result is as ...
GHeesch's user avatar
  • 66
1 vote
Accepted

Google Chrome segmentation fault within a minute

I am unable to debug the problem with gdb (bt only gives me hexadecimal numbers, not function names). Since, for the severity of this bug, everyone using the current version should have been affected ...
Cool Charac's user avatar
1 vote

Installing Portable Batch System (PBS) for job submission

PBS is good but it can take some effort to set up. Try looking into the following: ROCKS clusters - a CentOS-based compute cluster OS; takes the effort out of setting up PBS Torque cluster manager ...
jayhendren's user avatar
  • 8,384
1 vote
Accepted

How to use the proper video driver on Scientific Linux 6 for Display Port screens?

It is the lack of support for the GPU in kernel (and likely also in X.Org video driver) which you need to somehow solve. Proper support for Sky Lake based GPUs in i915 kernel driver should be ...
zagrimsan's user avatar
  • 766
1 vote
Accepted

TeXstudio rpm install: QT dependencies (e.g. libQtGui.so.4)

You need to install packages of the same architecture as your TeXstudio package, i.e. x86_64; look for qt-x11-4.8.5-11.el7.x86_64 instead of qt-x11-4.8.5-11.el7.i686.
Stephen Kitt's user avatar
1 vote

Is there a third-party application that can communicate over Skype's network?

As far as I know, there are still no skype-compatible skype-alternatives. However, there are plugins for Pidgin and Empathy that allow you to use skype via the Pidgin/Empathy interfaces. Unfortunately,...
KIAaze's user avatar
  • 797
1 vote

Yum: How can I view variables like $releasever, $basearch & $YUM0?

Getting the value for $arch should really be as simple as arch="$(arch)" or arch="$(uname --machine)" but if you really want to know what yum's value for $arch is, try: bash-4.2# arch="$(python -c '...
bfs's user avatar
  • 11

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