ラズベリーパイ2でも使えました!aptコマンドはapt-getコマンドに近いです。
aptコマンドのヘルプ
pi@raspberrypi:~ $ apt help apt 1.0.9.8.1 for armhf compiled on Sep 5 2015 17:46:14 Usage: apt [options] command CLI for apt. Basic commands: list - list packages based on package names search - search in package descriptions show - show package details update - update list of available packages install - install packages remove - remove packages upgrade - upgrade the system by installing/upgrading packages full-upgrade - upgrade the system by removing/installing/upgrading packages edit-sources - edit the source information file
かんたんな使い方
たとえばプログラムエディタのvimをaptでインストールすると、以下のコマンドになります
apt install vim
これはapt-getだと以下のコマンドと同じです
apt-get install vim
調べてみると、今まではパッケージを探すときは
apt-cache search "パッケージ名"
とapt-getとapt-cacheが完全に別のコマンドだったのですが、aptコマンドだと
apt search "パッケージ名"
と少しシンプルになったみたいです。自分はよくパッケージを探していたのでapt-cacheを覚えましたが、あまり使わない場合はapt-getとapt-cacheの2つに分かれているよりはaptで一本化されると便利かと思います。
Ubuntu14.04?から標準で使えるようになったみたいです。aptコマンドを詳しく知りたい場合は
第327回 aptコマンドを使ってみよう:Ubuntu Weekly Recipe|gihyo.jp … 技術評論社
の記事が参考になると思います!最初みた時、「-get」が抜けているタイプミスかと思いましたが本当にあったという。
apt search vimとしてみると
pi@raspberrypi:~ $ apt search vim Sorting... Done Full Text Search... Done alot/stable 0.3.6-1 all Text mode MUA using notmuch mail alot-doc/stable 0.3.6-1 all Text mode MUA using notmuch mail - documentation apvlv/stable 0.1.1-1.2+b1 armhf PDF viewer with Vim-like behaviour bleachbit/stable 1.4-1 all delete unnecessary files from the system cernlib-base/stable 20061220+dfsg3-4.1 all CERNLIB data analysis suite - common files clang-format-3.3/stable 1:3.3-16+rpi1 armhf Tool to format C/C++/Obj-C code clang-format-3.4/stable 1:3.4.2-13 armhf Tool to format C/C++/Obj-C code clang-format-3.5/stable 1:3.5-10+rpi1 armhf Tool to format C/C++/Obj-C code context-modules/stable 20140528-2 all additional ConTeXt modules (長いため以下省略)
という感じでコピー&ペーストだとわかりませんが、ターミナルだとパッケージ名が緑色になっていてちょっと見やすくなった気がします。