CentOS7基本工具安装

来源:互联网 发布:html5数据统计 编辑:程序博客网 时间:2024/05/02 01:26

实验环境:CentOS7 Minimal安装,安装过程及软件包见http://blog.csdn.net/capricorn90/article/details/52556174

网络工具

wget

Wget 是从 web 服务器获取(下载)内容的命令行工具。它是你使用 wget 命令获取 web 内容或下载任何文件必须要有的重要工具。

[vic@CentOS7 ~]$ sudo yum -y install wget
[vic@CentOS7 ~]$ wget –version

GNU Wget 1.14 built on linux-gnu.

+digest +https +ipv6 +iri +large-file +nls +ntlm +opie +ssl/openssl

Wgetrc:
/etc/wgetrc (system)
Locale: /usr/share/locale
Compile: gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC=”/etc/wgetrc”
-DLOCALEDIR=”/usr/share/locale” -I. -I../lib -I../lib -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
–param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
Link: gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong –param=ssp-buffer-size=4
-grecord-gcc-switches -m64 -mtune=generic -lssl -lcrypto
/usr/lib64/libssl.so /usr/lib64/libcrypto.so /usr/lib64/libz.so
-ldl -lz -lz -lidn -luuid -lpcre ftp-opie.o openssl.o http-ntlm.o
../lib/libgnu.a

Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
http://www.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.

Originally written by Hrvoje Niksic hniksic@xemacs.org.
Please send bug reports and questions to bug-wget@gnu.org.

Links是一款开放源代码的纯文字网页浏览器。支持简单的浏览功能,但是不支持中文,需要显示中文最好还是使用w3m。

[vic@CentOS7 ~]$ sudo yum -y install links
[vic@CentOS7 ~]$ links www.wikipedia.com

这里写图片描述

压缩工具

CentOS7最小化安装后默认安装了tar、gzip、xz。tar中,j选项对应bzip2,J选项对应xz,z选项对应gzip。

[vic@CentOS7 ~]$ sudo yum -y install bzip2

[vic@CentOS7 ~]$ bzip2 –version
bzip2, a block-sorting file compressor. Version 1.0.6, 6-Sept-2010.

Copyright (C) 1996-2010 by Julian Seward.

This program is free software; you can redistribute it and/or modify
it under the terms set out in the LICENSE file, which is included
in the bzip2-1.0.6 source distribution.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
LICENSE file for more details.

bzip2: I won’t write compressed data to a terminal.
bzip2: For help, type: `bzip2 –help’.

Zsh

文章http://blog.csdn.net/capricorn90/article/details/52558280中提到了zsh的优势,但是CentOS7最小化安装中并没有安装该功能。

[vic@CentOS7 ~]$ sudo yum -y install zsh

编译器/解释器

GNU

GNU编译器套件(GNU Compiler Collection)包括C、C++、Objective-C、Fortran、Java、Ada和Go语言的前端,也包括了这些语言的库(如libstdc++、libgcj等等)。GCC的初衷是为GNU操作系统专门编写的一款编译器。GNU系统是彻底的自由软件。

C语言

[vic@CentOS7 ~]$ sudo yum -y install gcc
[vic@CentOS7 ~]$ gcc –version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

C++语言

[vic@CentOS7 ~]$ sudo yum -y install gcc- #按两次tab键
gcc-c++.x86_64 gcc-gnat.x86_64 gcc-objc.x86_64 gcc-plugin-devel.x86_64
gcc-gfortran.x86_64 gcc-go.x86_64 gcc-objc++.x86_64
[vic@CentOS7 ~]$ sudo yum -y install gcc-c++
[vic@CentOS7 ~]$ g++ –version
g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Fortran语言

[vic@CentOS7 ~]$ sudo yum -y install gcc-gfortran

[vic@CentOS7 ~]$ gfortran –version

GNU Fortran (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)
Copyright (C) 2015 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

go语言

[vic@CentOS7 ~]$ sudo yum -y install gcc-go

[vic@CentOS7 ~]$ gccgo –version

gccgo (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Python语言

CentOS7 最小化安装时,默认安装Python2.7.5。可以到官网(https://www.python.org/getit/)上下载相应的源码包自己安装想要的版本。

Java语言

CentOS7默认的源中提供两种Java编译器:openjdk和javacc,通常安装openjdk,看个人喜好。Openjdk提供1.6、1.7、1.8三种版本,可以下载其他版本包括Oracle的jdk包来安装。此处安装的是

[vic@CentOS7 ~]$ sudo yum -y install java-1.8.0* #此处选择安装所有的包,同时包含依赖包,共计75个,需要5分钟时间

[vic@CentOS7 ~]$ java -version
openjdk version “1.8.0_102”
OpenJDK Runtime Environment (build 1.8.0_102-b14)
OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode)

[vic@CentOS7 ~]$ javac -version
javac 1.8.0_102

0 0
原创粉丝点击