Как узнать версию установленной программы в Rocky
Самое очевидное решение - выполнить название этой команды с одним из флагов
- --version
- -v
- -V
Например
sed --version
sed (GNU sed) 4.7 Packaged by rocky Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Jay Fenlason, Tom Lord, Ken Pizzini, Paolo Bonzini, Jim Meyering, and Assaf Gordon. GNU sed home page: <https://www.gnu.org/software/sed/>. General help using GNU software: <https://www.gnu.org/gethelp/>. E-mail bug reports to: <bug-sed@gnu.org>.
Чтобы определить версию Virtualbox выполните
virtualbox --help
Oracle VM VirtualBox VM Selector v6.1.10_Ubuntu (C) 2005-2020 Oracle Corporation All rights reserved. No special options. If you are looking for --startvm and related options, you need to use VirtualBoxVM.
rpm
Версию некоторых программ можно определить через rpm -q
Например, версию redis
rpm -q redis
redis-5.0.3-5.module+el8.5.0+657+2674830e.x86_64
Или
package redis is not installed