質問: terminalでubuntuパッケージ16.04を更新するにはどうすればよいですか? ターミナルコマンドラインからubuntuを更新する方法を知りたいと思っています。私は、ubuntuの背後にいる人々がv16のアップデートを開始した場合、およびその場合に備えて、オペレーティングシステムソフトウェアをアップデートしたいと考えています。これは14.04で動作します。 コマンドライン経由でアップデートをインストールする方法?
回答: 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 お役に立てれば!