# nexus(raw) 형태 리포지터리에서 curl을 이용한 파일 관리 명령어

<table border="1" id="bkmrk-perplexity%EC%97%90%EC%84%9C-%EC%83%9D%EC%84%B1%ED%95%9C-ai%EC%9D%B4" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 99.881%;"></col></colgroup><tbody><tr><td>[![image.png](http://wiki.igoni.kr/uploads/images/gallery/2026-02/scaled-1680-/L6fimage.png)](http://wiki.igoni.kr/uploads/images/gallery/2026-02/L6fimage.png)

</td></tr><tr><td class="align-right">perplexity에서 생성한 AI이미지</td></tr></tbody></table>

### 구성정보

- nexus서버 IP : 192.168.10.10:11000
- 리포지터리명 : test\_repo
- 계정명 : test / test123

### 작업절차

1. test\_repo에 있는 img-1.png 파일 다운로드 ```shell
    $> curl -IL -u 'test:test123' http://192.168.10.10:11000/repository/test_repo/img-1.png -o img-1.png
    ```
2. test.tar.gz 파일을 test\_repo로 업로드 ```shell
    $> curl -IL -u 'test:test123' --upload-file ./test.tar.gz http://192.168.10.10:11000/repository/test_repo/test.tar.gz
    ```
3. test\_repo에 있는 test.tar.gz 파일 삭제 ```shell
    $> curl -IL --request DELETE -u 'test:test123' http:/192.168.10.10:11000/repository/test_repo/test.tar.gz
    
    ```