11
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Linux系の主なバージョン確認方法のメモ

Posted at

OS

RHEL/CentOS
$ cat /etc/issue
$ cat /etc/redhat-release
Fedora
$ cat /etc/issue
$ cat /etc/fedora-release
Debian
$ cat /etc/issue
$ cat /etc/debian_version
OracleLinux
$ cat /etc/issue
$ cat /etc/oracle-release
$ cat /etc/redhat-release
Turbolinux
$ cat /etc/issue
$ cat /etc/turbolinux-release
SuSE
$ cat /etc/issue
$ cat /etc/SuSE-release
Mandriva
$ cat /etc/issue
$ cat /etc/mandriva-release
Vine
$ cat /etc/issue
$ cat /etc/vine-release
FreeBSD
$ uname -r
$ uname -a

シェル系

bash

RHEL/CentOS
$ bash -version
$ rpm -q bash
Ubuntu/Debian
$ bash -version
$ dpkg -l bash
ArchLinux
$ bash -version
$ pacman -Q bash
GentooLinux
$ bash -version
$ equery list bash

サーバ系

Webサーバ

Apache
$ httpd -v
$ apachectl -v
Nginx
$ nginx -V

DBサーバ

MySQL
$ mysql --version
$ mysqladmin --version
$ mysqladmin -u username -p'password' version
PostgreSQL
$ psql --version

メールサーバ

Sendmail
$ /usr/sbin/sendmail -d0.101
Postfix
$ postconf | grep mail_version

DNSサーバ

BIND
$ /usr/sbin/named -v

ネットワーク系

OpenSSL
$ openssl version
OpenSSH
$ /usr/bin/ssh -v

言語系

PHP
$ php -v
$ php composer.phar --version
Perl
$ perl -v
$ cpan -v
$ perldoc -v
Python
$ python -V
Ruby
$ ruby -v
$ gem -v
$ rails -v

開発系

git
$ git --version
Heroku
$ heroku --version
Docker
$ docker version
packer
$ packer -v
Vagrant/VirtualBox
$ vagrant -v
$ vagrant --version
$ veewee version
$ vboxmanage -v
Chef
$ chef-solo -v
$ chef-client -v
$ knife --version
$ knife -v
$ berks version

フレームワーク系

CakePHP1
$ cat cake/VERSION.txt
CakePHP2
$ cat lib/Cake/VERSION.txt
CakePHP3
$ cat VERSION.txt
Symfony2
$ php app/console --version
11
17
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?