[Linux] 用 tasksel 查詢 Ubuntu 安裝某個 collection 時會裝上哪些套件

[Linux] 用 tasksel 查詢 Ubuntu 安裝某個 collection 時會裝上哪些套件

在安裝 Ubuntu 時,都會有一個套件選擇的畫面,

不過幾乎是每次看到,都還是不太確定那個 “Basic Ubuntu server” 裡到底有什麼東西…

如果這個 “Basic” 裡包含了太多我不需要的東西的話,我寧可之後再自己把需要的裝起來~

Screen Shot 2016-07-20 at 12.28.49 AM  

 

上網查了一下,有人也跟我有一樣的疑問,不過當然也有神人回答囉~

簡單的說,我們可以透過 Ubuntu 上的 tasksel 指令來查詢~

(謎之音:Ubuntu 還沒裝好前,哪來的 tasksel 給我執行呢?

答:請去找另一台已經裝好的 Ubuntu 來試…)

testuser@ubuntu:~$ tasksel --help
Usage:
tasksel install <task>
tasksel remove <task>
tasksel [options]
-t, --test          test mode; don't really do anything
--new-install   automatically install some tasks
--list-tasks    list tasks that would be displayed and exit
--task-packages list available packages in a task
--task-desc     returns the description of a task

 

單獨執行 tasksel 的話,就可以彈出像最一開始的套件選擇視窗,

而加上 –list-tasks 可以把所有套件的相關資訊顯示出來,

這樣我們就可以看到 “Basic Ubuntu server” 的內部名稱其實是叫 “server”~

(每一項前面的 u 和 i 應該分別代表 uninstalled 未安裝/ installed 已安裝)

testuser@ubuntu:~$ tasksel --list-tasks
u server    Basic Ubuntu server
i openssh-server    OpenSSH server
u dns-server    DNS server
u lamp-server   LAMP server
u mail-server   Mail server
u postgresql-server PostgreSQL database
i print-server  Print server
......

 

用 –task-packages 這個參數,來查詢 “server” 套件包含的東西,

可以看到裡面東西還真的不少啊:

testuser@ubuntu:~$ tasksel --task-packages server
python-twisted-core
libgpm2
python-serial
libmro-compat-perl
libcgi-fast-perl
gawk
libalgorithm-c3-perl
ethtool
libtext-soundex-perl
patch
python-zope.interface
libsoftware-license-perl
vim-runtime
libsigsegv2
libpython-stdlib
git-man
python-configobj
libsub-install-perl
landscape-common
liblog-message-perl
python3-software-properties
libarchive-extract-perl
memtest86+
python-gdbm
w3m
python-idna
apport
libmodule-signature-perl
python-pam
libpackage-constants-perl
libgc1c2
libpython2.7
python3-problem-report
at
libpython2.7-minimal
libtext-template-perl
libpcsclite1
libclass-c3-perl
libnl-genl-3-200
libnl-3-200
python-pyasn1-modules
xz-utils
libpod-readme-perl
libsub-exporter-perl
libfcgi-perl
libterm-ui-perl
libpolkit-backend-1-0
update-notifier-common
tmux
wpasupplicant
python-chardet
python
screen
python-debian
acpid
python-twisted-bin
libcurl3
wireless-tools
software-properties-common
python-apt
rename
liberror-perl
libcgi-pm-perl
python2.7
python-six
git
libpython2.7-stdlib
libmodule-pluggable-perl
libclass-c3-xs-perl
python-service-identity
libiw30
fonts-ubuntu-font-family-console
libmodule-build-perl
curl
libdata-optlist-perl
perl
libpod-latex-perl
python-pkg-resources
unattended-upgrades
liblog-message-simple-perl
libmpfr4
libdata-section-perl
python-characteristic
run-one
perl-modules
libparams-util-perl
libregexp-common-perl
python-minimal
libpolkit-agent-1-0
libevent-2.0-5
python2.7-minimal
python3-newt
byobu
python3-apport
bc
python3-pycurl
python-pyasn1
apport-symptoms
policykit-1
vim
libcpan-meta-perl
libreadline5
python-openssl

 

參考資料:What does the “Basic Ubuntu Server” package contain in software selection during installation?

 

(本頁面已被瀏覽過 482 次)

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料