QNAP에 매크로 패키지 관리자 배치

7892 단어 Qnap
(주의) 이 문장은 오래된 정보이다
ipkg은 없어진 것 같은데 여기 기사를 참조하세요.
  • QNAP용 패키지 관리자 - Qiita
  • 하고 싶은 일
    ssh가 QNAP에 로그인한 경우 기본 셸은 sh입니다.less 또는 file 명령도 설치되지 않았습니다.
    그럼 뭘 더 추가하고 싶은데 yumapt 이런 포장 관리자도 없어요.
    QNAP용 패키지 관리자로 Optware IPKG를 제공하기 때문에 이것을 이용합니다.
    이 IPKG가 제공하는 포장 수량은 많지 않지만 먼저 이용하고 싶은 물건이 있는데 다 있는 것 같아요.
    Optware IPKG 설치
    웹 관리 화면 App Center에서 Optware IPKG를 선택하여 설치하기만 하면 됩니다.
  • Optware IPKG를 설치할 때/opt/share/VOLUME/.qpkg/Optware/에 기호 링크가 됨
  • Optware IPKG를 설치할 때 일반적인 conf 등이 /opt/etc/ 아래로 들어갑니다
  • # ipkg
    ipkg: ipkg must have one sub-command argument
    ipkg version 0.99.163
    usage: ipkg [options...] sub-command [arguments...]
    where sub-command is one of:
    
    Package Manipulation:
      update      Update list of available packages
      upgrade     Upgrade all installed packages to latest version
      install <pkg>   Download and install <pkg> (and dependencies)
      install <file.ipk>  Install package <file.ipk>
      configure [<pkg>] Configure unpacked packages
      remove <pkg|regexp> Remove package <pkg|packages following regexp>
      flag <flag> <pkg> ... Flag package(s) <pkg>
       <flag>=hold|noprune|user|ok|installed|unpacked (one per invocation)
    
    Informational Commands:
      list        List available packages and descriptions
      list_installed    List all and only the installed packages and description
      files <pkg>   List all files belonging to <pkg>
      search <file|regexp>    Search for a package providing <file>
      info [pkg|regexp]   Display all info for <pkg>
      status [pkg|regexp]   Display all status for <pkg>
      download <pkg>    Download <pkg> to current directory.
      compare_versions <v1> <op> <v2>
                                compare versions using <= < > >= = << >>
      print_architecture      prints the architecture.
      print_installation_architecture
      whatdepends [-A] [pkgname|pat]+
      whatdependsrec [-A] [pkgname|pat]+
      whatprovides [-A] [pkgname|pat]+
      whatconflicts [-A] [pkgname|pat]+
      whatreplaces [-A] [pkgname|pat]+
                              prints the installation architecture.
    
    Options:
      -A                      Query all packages with whatdepends, whatprovides, whatreplaces, whatconflicts
      -V <level>               Set verbosity level to <level>. If no value is
      --verbosity <level>      provided increase verbosity by one. Verbosity levels:
                               0 errors only
                               1 normal messages (default)
                               2 informative messages
                               3 debug output
      -f <conf_file>    Use <conf_file> as the ipkg configuration file
      -conf <conf_file> Default configuration file location
            is /opt/etc/ipkg.conf
      -d <dest_name>    Use <dest_name> as the the root directory for
      -dest <dest_name> package installation, removal, upgrading.
            <dest_name> should be a defined dest name from
            the configuration file, (but can also be a
            directory name in a pinch).
      -o <offline_root> Use <offline_root> as the root directory for
      -offline <offline_root> offline installation of packages.
      -verbose_wget   more wget messages
      Force Options (use when ipkg is too smart for its own good):
      -force-depends    Make dependency checks warnings instead of errors
              Install/remove package in spite of failed dependences
      -force-defaults   Use default options for questions asked by ipkg.
            (no prompts). Note that this will not prevent
            package installation scripts from prompting.
      -force-reinstall  Allow ipkg to reinstall a package.
      -force-overwrite  Allow ipkg to overwrite files from another package during an install.
      -force-downgrade  Allow ipkg to downgrade packages.
      -force_space            Install even if there does not seem to be enough space.
      -noaction               No action -- test only
      -nodeps                 Do not follow dependences
      -force-removal-of-dependent-packages
      -recursive    Allow ipkg to remove package and all that depend on it.
      -test                   No action -- test only
      -t            Specify tmp-dir.
      --tmp-dir           Specify tmp-dir.
    
      regexp could be something like 'pkgname*' '*file*' or similar
      eg: ipkg info 'libstd*'  or ipkg search '*libop*' or ipkg remove 'libncur*'
    
    매크로 패키지 설치
  • zsh
  • less
  • file
  • 이를 각각 # ipkg install (パッケージ名) 다음에
    설치된 패키지 목록을 표시하면 이렇게 됩니다.
    # ipkg list_installed
    bash - 3.2.54-1 - A bourne style shell
    file - 5.12-1 - Ubiquitous file identification utility.
    gdbm - 1.8.3-4 - GNU dbm is a set of database routines that use extensible hashing. It works similar to the standard UNIX dbm routines.
    ipkg-web - 7-7 - A web frontend for ipkg
    less - 444-1 - Less file browser
    ncurses - 5.7-3 - NCurses libraries
    ncursesw - 5.7-2 - NCurses libraries with wide char support
    readline - 6.1-2 - The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are
    sudo - 1.8.4.5-1 - System utility to execute commands as the superuser
    termcap - 1.3.1-2 - Terminal emulation library
    zlib - 1.2.5-1 - zlib is a library implementing the 'deflate' compression system.
    zsh - 4.3.17-1 - Zsh is a shell designed for interactive use.
    Successfully terminated.
    
    참고 자료
  • QNAP를 사용하려면 Optware IPKG를 설치하십시오.
  • 좋은 웹페이지 즐겨찾기