"CentOS sshpass 설치"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(사용자 2명의 중간 판 28개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==yum, apt-get 설치 실패==
{{다른뜻|우분투 sshpass 설치}}
<source lang='dos'>
{{테스트|CentOS 6.2}}
[root@jmnote ~]# yum install sshpass -y
;리눅스 sshpass 설치 (yum)
Loaded plugins: fastestmirror, refresh-packagekit
;CentOS sshpass 설치
Determining fastest mirrors
updates/metalink                                                                                  | 2.6 kB    00:00
* fedora: ftp.tsukuba.wide.ad.jp
* updates: ftp-stud.hs-esslingen.de
fedora                                                                                            | 3.8 kB    00:00
Setting up Install Process
No package sshpass available.
Nothing to do
[root@jmnote ~]# apt-get install sshpass
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package sshpass
[root@jmnote ~]#
</source>


==다운로드 및 설치==
==확인==
;명령어
<syntaxhighlight lang='console'>
<source lang='bash'>
[root@zetawiki ~]# rpm -qa | grep sshpass
wget http://download.fedora.redhat.com/pub/epel/6/x86_64/sshpass-1.05-1.el6.x86_64.rpm
[root@zetawiki ~]# sshpass
</source>
-bash: sshpass: command not found
</syntaxhighlight>
:→ 설치 안됨


;예시
== epel-release 설치 ==
<source lang='dos'>
{{참고|epel-release 설치}}
[root@jmnote ~]# wget http://download.fedora.redhat.com/pub/epel/6/x86_64/sshpass-1.05-1.el6.x86_64.rpm
--2012-02-12 16:22:30--  http://download.fedora.redhat.com/pub/epel/6/x86_64/sshpass-1.05-1.el6.x86_64.rpm
Resolving download.fedora.redhat.com... 209.132.181.23, 209.132.181.24, 209.132.181.25, ...
Connecting to download.fedora.redhat.com|209.132.181.23|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19292 (19K) [application/x-rpm]
Saving to: “sshpass-1.05-1.el6.x86_64.rpmâ€


100%[================================================================================>] 19,292      62.4K/s  in 0.3s
== yum으로 설치 ==
<syntaxhighlight lang='console'>
[root@zetawiki ~]# yum install sshpass
... (생략)
===================================================================================
Package            Arch              Version                Repository      Size
===================================================================================
Installing:
sshpass            x86_64            1.05-1.el6            epel            19 k


2012-02-12 16:22:31 (62.4 KB/s) - “sshpass-1.05-1.el6.x86_64.rpmâ€
Transaction Summary
===================================================================================
Install      1 Package(s)


[root@jmnote ~]#
Total download size: 19 k
</source>
Installed size: 33 k
Is this ok [y/N]: y
</syntaxhighlight>
<syntaxhighlight lang='console'>
... (생략)
Installed:
  sshpass.x86_64 0:1.05-1.el6                                                     
 
Complete!
</syntaxhighlight>
 
==확인 2==
<syntaxhighlight lang='console'>
[root@zetawiki ~]# rpm -qa | grep sshpass
sshpass-1.05-1.el6.x86_64
</syntaxhighlight>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# sshpass -V
sshpass 1.05 (C) 2006-2011 Lingnu Open Source Consulting Ltd.
This program is free software, and can be distributed under the terms of the GPL
See the COPYING file for more information.
</syntaxhighlight>
 
==같이 보기==
*[[epel-release 설치]]
*[[sshpass 사용법]]
*[[우분투 sshpass 설치]]
*[[리눅스에서 SFTP로 파일 올리기]]


[[분류:리눅스]]
[[분류:리눅스]]
[[분류:SSH]]
[[분류:SSH]]
[[분류: yum 설치]]

2020년 11월 2일 (월) 00:55 기준 최신판

  다른 뜻에 대해서는 우분투 sshpass 설치 문서를 참조하십시오.
리눅스 sshpass 설치 (yum)
CentOS sshpass 설치

1 확인[ | ]

[root@zetawiki ~]# rpm -qa | grep sshpass
[root@zetawiki ~]# sshpass
-bash: sshpass: command not found
→ 설치 안됨

2 epel-release 설치[ | ]

3 yum으로 설치[ | ]

[root@zetawiki ~]# yum install sshpass
... (생략)
===================================================================================
 Package            Arch              Version                Repository       Size
===================================================================================
Installing:
 sshpass            x86_64            1.05-1.el6             epel             19 k

Transaction Summary
===================================================================================
Install       1 Package(s)

Total download size: 19 k
Installed size: 33 k
Is this ok [y/N]: y
... (생략)
Installed:
  sshpass.x86_64 0:1.05-1.el6                                                      

Complete!

4 확인 2[ | ]

[root@zetawiki ~]# rpm -qa | grep sshpass
sshpass-1.05-1.el6.x86_64
[root@zetawiki ~]# sshpass -V
sshpass 1.05 (C) 2006-2011 Lingnu Open Source Consulting Ltd.
This program is free software, and can be distributed under the terms of the GPL
See the COPYING file for more information.

5 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}