Instalación y remoción de software#
[1]:
%%bash
#
# Búsqueda de un paquete
#
apt-cache search python3 | head
libpython3-all-dbg - package depending on all supported Python 3 debugging packages
libpython3-all-dev - package depending on all supported Python 3 development packages
libpython3-dbg - debug build of the Python 3 Interpreter (version 3.8)
libpython3-dev - header files and a static library for Python (default)
libpython3-stdlib - interactive high-level object-oriented language (default python3 version)
libpython3.8 - Shared Python runtime library (version 3.8)
libpython3.8-dbg - Debug Build of the Python Interpreter (version 3.8)
libpython3.8-dev - Header files and a static library for Python (v3.8)
libpython3.8-minimal - Minimal subset of the Python language (version 3.8)
libpython3.8-stdlib - Interactive high-level object-oriented language (standard library, version 3.8)
[2]:
%%bash
#
# Actualización de paquetes
#
apt-get update
Hit:1 https://cli.github.com/packages stable InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists...
[3]:
%%bash
#
# Instalación
#
apt-get install -y vim
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libcanberra0 libogg0 libpython3.8 libtdb1 libvorbis0a libvorbisfile3
sound-theme-freedesktop vim-common vim-runtime xxd
Suggested packages:
libcanberra-gtk0 libcanberra-pulse ctags vim-doc vim-scripts
The following NEW packages will be installed:
libcanberra0 libogg0 libpython3.8 libtdb1 libvorbis0a libvorbisfile3
sound-theme-freedesktop vim vim-common vim-runtime xxd
0 upgraded, 11 newly installed, 0 to remove and 112 not upgraded.
Need to get 9480 kB of archives.
After this operation, 41.9 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 xxd amd64 2:8.1.2269-1ubuntu5.22 [53.2 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 vim-common all 2:8.1.2269-1ubuntu5.22 [88.2 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libtdb1 amd64 1.4.5-0ubuntu0.20.04.1 [44.2 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal/main amd64 libogg0 amd64 1.3.4-0ubuntu1 [24.0 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main amd64 libvorbis0a amd64 1.3.6-2ubuntu1 [87.0 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal/main amd64 libvorbisfile3 amd64 1.3.6-2ubuntu1 [16.1 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/main amd64 sound-theme-freedesktop all 0.8-2ubuntu1 [384 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal/main amd64 libcanberra0 amd64 0.30-7ubuntu1 [38.1 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8 amd64 3.8.10-0ubuntu1~20.04.9 [1625 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 vim-runtime all 2:8.1.2269-1ubuntu5.22 [5877 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 vim amd64 2:8.1.2269-1ubuntu5.22 [1243 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 9480 kB in 3s (3683 kB/s)
Selecting previously unselected package xxd.
(Reading database ... 36219 files and directories currently installed.)
Preparing to unpack .../00-xxd_2%3a8.1.2269-1ubuntu5.22_amd64.deb ...
Unpacking xxd (2:8.1.2269-1ubuntu5.22) ...
Selecting previously unselected package vim-common.
Preparing to unpack .../01-vim-common_2%3a8.1.2269-1ubuntu5.22_all.deb ...
Unpacking vim-common (2:8.1.2269-1ubuntu5.22) ...
Selecting previously unselected package libtdb1:amd64.
Preparing to unpack .../02-libtdb1_1.4.5-0ubuntu0.20.04.1_amd64.deb ...
Unpacking libtdb1:amd64 (1.4.5-0ubuntu0.20.04.1) ...
Selecting previously unselected package libogg0:amd64.
Preparing to unpack .../03-libogg0_1.3.4-0ubuntu1_amd64.deb ...
Unpacking libogg0:amd64 (1.3.4-0ubuntu1) ...
Selecting previously unselected package libvorbis0a:amd64.
Preparing to unpack .../04-libvorbis0a_1.3.6-2ubuntu1_amd64.deb ...
Unpacking libvorbis0a:amd64 (1.3.6-2ubuntu1) ...
Selecting previously unselected package libvorbisfile3:amd64.
Preparing to unpack .../05-libvorbisfile3_1.3.6-2ubuntu1_amd64.deb ...
Unpacking libvorbisfile3:amd64 (1.3.6-2ubuntu1) ...
Selecting previously unselected package sound-theme-freedesktop.
Preparing to unpack .../06-sound-theme-freedesktop_0.8-2ubuntu1_all.deb ...
Unpacking sound-theme-freedesktop (0.8-2ubuntu1) ...
Selecting previously unselected package libcanberra0:amd64.
Preparing to unpack .../07-libcanberra0_0.30-7ubuntu1_amd64.deb ...
Unpacking libcanberra0:amd64 (0.30-7ubuntu1) ...
Selecting previously unselected package libpython3.8:amd64.
Preparing to unpack .../08-libpython3.8_3.8.10-0ubuntu1~20.04.9_amd64.deb ...
Unpacking libpython3.8:amd64 (3.8.10-0ubuntu1~20.04.9) ...
Selecting previously unselected package vim-runtime.
Preparing to unpack .../09-vim-runtime_2%3a8.1.2269-1ubuntu5.22_all.deb ...
Adding 'diversion of /usr/share/vim/vim81/doc/help.txt to /usr/share/vim/vim81/doc/help.txt.vim-tiny by vim-runtime'
Adding 'diversion of /usr/share/vim/vim81/doc/tags to /usr/share/vim/vim81/doc/tags.vim-tiny by vim-runtime'
Unpacking vim-runtime (2:8.1.2269-1ubuntu5.22) ...
Selecting previously unselected package vim.
Preparing to unpack .../10-vim_2%3a8.1.2269-1ubuntu5.22_amd64.deb ...
Unpacking vim (2:8.1.2269-1ubuntu5.22) ...
Setting up libogg0:amd64 (1.3.4-0ubuntu1) ...
Setting up libtdb1:amd64 (1.4.5-0ubuntu0.20.04.1) ...
Setting up xxd (2:8.1.2269-1ubuntu5.22) ...
Setting up vim-common (2:8.1.2269-1ubuntu5.22) ...
Setting up libpython3.8:amd64 (3.8.10-0ubuntu1~20.04.9) ...
Setting up libvorbis0a:amd64 (1.3.6-2ubuntu1) ...
Setting up sound-theme-freedesktop (0.8-2ubuntu1) ...
Setting up vim-runtime (2:8.1.2269-1ubuntu5.22) ...
Setting up libvorbisfile3:amd64 (1.3.6-2ubuntu1) ...
Setting up libcanberra0:amd64 (0.30-7ubuntu1) ...
Setting up vim (2:8.1.2269-1ubuntu5.22) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/da/man1/vi.1.gz because associated file /usr/share/man/da/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/de/man1/vi.1.gz because associated file /usr/share/man/de/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/vi.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/it/man1/vi.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/vi.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/vi.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/vi.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/vi.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/da/man1/view.1.gz because associated file /usr/share/man/da/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/de/man1/view.1.gz because associated file /usr/share/man/de/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/view.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/it/man1/view.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/view.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/view.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/view.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/view.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/da/man1/ex.1.gz because associated file /usr/share/man/da/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/de/man1/ex.1.gz because associated file /usr/share/man/de/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/ex.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/it/man1/ex.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/ex.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/ex.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/ex.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/ex.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group ex) doesn't exist
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Processing triggers for mime-support (3.64ubuntu1) ...
[4]:
%%bash
#
# Remoción de software (Paso 1)
#
apt-get remove -y vim
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
libcanberra0 libogg0 libpython3.8 libtdb1 libvorbis0a libvorbisfile3
sound-theme-freedesktop vim-common vim-runtime xxd
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
vim
0 upgraded, 0 newly installed, 1 to remove and 112 not upgraded.
After this operation, 3121 kB disk space will be freed.
(Reading database ... 38212 files and directories currently installed.)
Removing vim (2:8.1.2269-1ubuntu5.22) ...
[5]:
%%bash
#
# Remoción de software (Paso 2)
#
apt-get purge -y vim
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
libcanberra0 libogg0 libpython3.8 libtdb1 libvorbis0a libvorbisfile3
sound-theme-freedesktop vim-common vim-runtime xxd
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
vim*
0 upgraded, 0 newly installed, 1 to remove and 112 not upgraded.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 38203 files and directories currently installed.)
Purging configuration files for vim (2:8.1.2269-1ubuntu5.22) ...
[6]:
%%bash
#
# Remoción de software y dependencias
#
apt autoremove -y vim
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Package 'vim' is not installed, so not removed
The following packages will be REMOVED:
libcanberra0 libogg0 libpython3.8 libtdb1 libvorbis0a libvorbisfile3
sound-theme-freedesktop vim-common vim-runtime xxd
0 upgraded, 0 newly installed, 10 to remove and 112 not upgraded.
After this operation, 38.8 MB disk space will be freed.
(Reading database ... 38203 files and directories currently installed.)
Removing libcanberra0:amd64 (0.30-7ubuntu1) ...
Removing libvorbisfile3:amd64 (1.3.6-2ubuntu1) ...
Removing libvorbis0a:amd64 (1.3.6-2ubuntu1) ...
Removing libogg0:amd64 (1.3.4-0ubuntu1) ...
Removing libpython3.8:amd64 (3.8.10-0ubuntu1~20.04.9) ...
Removing libtdb1:amd64 (1.4.5-0ubuntu0.20.04.1) ...
Removing sound-theme-freedesktop (0.8-2ubuntu1) ...
Removing vim-common (2:8.1.2269-1ubuntu5.22) ...
Removing vim-runtime (2:8.1.2269-1ubuntu5.22) ...
Removing 'diversion of /usr/share/vim/vim81/doc/help.txt to /usr/share/vim/vim81/doc/help.txt.vim-tiny by vim-runtime'
Removing 'diversion of /usr/share/vim/vim81/doc/tags to /usr/share/vim/vim81/doc/tags.vim-tiny by vim-runtime'
Removing xxd (2:8.1.2269-1ubuntu5.22) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Processing triggers for mime-support (3.64ubuntu1) ...