728x90
일이 바빠서 스크립트만 덜렁 써놓고...
아래 스크립트는 기본적으로 nexus에 yum 관련 rpm 파일을 일괄 업로드 하는 거임 외부망에 yum repo를 옮기는게 목적
#!/bin/bash
files="./files.out"
username="계정"
password="비번"
nexusurl="http://접속주소/repository/yum-hosted/"
find . -name '*.rpm' -type f | cut -c 3- | grep "." > $files
while read i; do
echo "upload $i to $nexusurl"
curl -v -u $username:$password --upload-file $i "$nexusurl$i"
done <$files
728x90
'리눅스' 카테고리의 다른 글
systemctl 관리-목록-등록-삭제 (0) | 2022.07.18 |
---|---|
ll 명령어 안될때 (0) | 2022.05.25 |
CentOS 7 Selinux 설정 오류시 부팅 안됨 (0) | 2020.12.01 |
서버 해킹 의심 확인(kswapd0) 프로세스 점유율 이상으로 인한 확인 (0) | 2020.10.08 |
vm 에 우분투 18 서버 live 버전 설치시 기본 세팅 (0) | 2020.09.16 |