보통 리눅스에서 프로그램을 설치하거나 업데이트 할 때 yum(나는 보통 '윰'이라 읽었는데, 외국에선 '염'에 가깝게 읽는다더란...)이란 프로그램을 사용했는데...리눅스를 관리할 일이 없다보니 이 툴도 잘 사용하는 편이 아니었다.

이번에 FC22를 설치하고 보니 yum이 dnf로 대체 되었다고 한다.
X환경에서 프로그램 하나 설치하려고 하면 왜이리 힘든지...이제 늙은건지 이리 해보고 저리 해봐도 잘 모르겠다.
gui는 포기하고 쉘환경에서 dnf를 사용해서 설치하기로 했다.

먼저 dnf -y update 통해 설치되어 있는 것들을 최신으로 업데이트 한다.(아마 맞을거다...)
그리고 나서 dnf -y install vim-enhanced 명령으로 vim을 설치한다.

관련 정보는 아래 링크에서 얻었다.

http://www.liquidweb.com/kb/how-to-install-vim-visual-editor-improved-on-fedora-22/

기존에 쓰던 리눅스는 runlevel을 변경하기 위해서 /etc/inittab 파일을 수정해왔다.

id:3:initdefault:

하지만 이번에 설치한 Fedora Core 22에서는 해당 파일에서 runlevel을 변경하는 항목을 찾을 수 없었다.

대신 다른 방법을 사용하라고 알려주신다.

# inittab is no longer used.
#
# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# Ctrl-Alt-Delete is handled by /usr/lib/systemd/system/ctrl-alt-del.target
#
# systemd uses 'targets' instead of runlevels. By default, there are two main targets:
#
# multi-user.target: analogous to runlevel 3
# graphical.target: analogous to runlevel 5
#
# To view current default target, run:
# systemctl get-default
#
# To set a default target, run:
# systemctl set-default TARGET.target

root 유저로 아래와 같이 명령을 내리니 변경이 되었다.

systemctl set-default multi-user.target

이후 확인해 보면 아래와 같이 변경 된 것을 확인할 수 있다.

변경 전
# ls -al /etc/systemd/system/default.target
lrwxrwxrwx. 1 root root 36 10월 14 17:33 /etc/systemd/system/default.target -> /lib/systemd/system/graphical.target

변경 후
# ls -al /etc/systemd/system/default.target
lrwxrwxrwx. 1 root root 41 10월 15 13:22 /etc/systemd/system/default.target -> /usr/lib/systemd/system/multi-user.target