터미널에서 우분투 패키지 16.04를 어떻게 업데이트합니까?

터미널에서 우분투 패키지 16.04를 어떻게 업데이트합니까?

터미널 명령줄을 통해 Ubuntu를 업데이트하는 방법을 알고 싶습니다.

우분투 뒤에 있는 사람들이 v16에 대한 업데이트를 시작하는 시기와 경우에 대비해 운영 체제 소프트웨어를 업데이트하고 싶습니다.

이것은 14.04에서 작동합니다. 비슷하게 보이게 해서 죄송합니다. 명령줄을 통해 업데이트를 설치하는 방법은 무엇입니까?

답변1

Ubuntu 16.04는 apt패키지 관리자를 사용합니다. 터미널 명령줄에서 업데이트하려면 다음을 입력하세요.

sudo apt update
sudo apt upgrade

apt또는 모든 명령 에 대한 자세한 설명을 보려면 다음을 실행하세요.

man apt

다음과 같은 페이지가 표시됩니다.

APT(8)                                APT                               APT(8)

NAME
       apt - command-line interface

SYNOPSIS
       apt [-h] [-o=config_string] [-c=config_file] [-t=target_release]
           [-a=architecture] {list | search | show | update |
           install pkg [{=pkg_version_number | /target_release}]...  |
           remove pkg...  | upgrade | full-upgrade | edit-sources |
           {-v | --version} | {-h | --help}}

DESCRIPTION
       apt provides a high-level commandline interface for the package
       management system. It is intended as an end user interface and enables
       some options better suited for interactive usage by default compared to
       more specialized APT tools like apt-get(8) and apt-cache(8).

       Much like apt itself, its manpage is intended as an end user interface
       and as such only mentions the most used commands and options partly to
       not duplicate information in multiple places and partly to avoid
       overwhelming readers with a cornucopia of options and details.

       update (apt-get(8))
           update is used to download package information from all configured
           sources. Other commands operate on this data to e.g. perform
           package upgrades or search in and display details about all
           packages available for installation.


       upgrade (apt-get(8))
           upgrade is used to install available upgrades of all packages
           currently installed on the system from the sources configured via
           sources.list(5). New packages will be installed if required to
           statisfy dependencies, but existing packages will never be removed.
           If an upgrade for a package requires the remove of an installed
           package the upgrade for this package isn't performed.

       full-upgrade (apt-get(8))
           full-upgrade performs the function of upgrade but will remove
           currently installed packages if this is needed to upgrade the
           system as a whole.

       install, remove, purge (apt-get(8))
           Performs the requested action on one or more packages specified via
           regex(7), glob(7) or exact match. The requested action can be
           overridden for specific packages by append a plus (+) to the

도움이 되었기를 바랍니다!

관련 정보