You are not logged in.

#1 2018-04-15 06:54:39

hhh
That's easy!
Registered: 2015-09-17
Posts: 6,127
Website

Package/System Maintenance via a terminal

Update your sources...

sudo apt update

See what, if anything, will be upgraded (post on the forums if something looks strange) and upgrade...

sudo apt upgrade

Finally, check if packages are no longer needed and remove them (SUPER CAUTION DOING THIS! POST IF UNSURE)...

sudo apt --purge autoremove

A sample output looks like this...

rachel@tyrell-corp:~$ sudo apt update
[sudo] password for rachel: 
Hit:1 https://repo.windscribe.com/debian stretch InRelease
Ign:2 https://cdn-aws.deb.debian.org/debian stretch InRelease
Hit:3 https://eu.pkg.bunsenlabs.org/debian helium InRelease
Get:4 https://cdn-aws.deb.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:5 https://cdn-aws.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Hit:6 https://cdn-aws.deb.debian.org/debian stretch Release
Get:8 https://cdn-aws.deb.debian.org/debian-security stretch/updates/main amd64 Packages [367 kB]
Get:9 https://cdn-aws.deb.debian.org/debian-security stretch/updates/main Translation-en [162 kB]
Fetched 714 kB in 2min 20s (5,073 B/s)   
Reading package lists... Done
Building dependency tree       
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
rachel@tyrell-corp:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libbasicusageenvironment1 libcddb2 libdirectfb-1.2-9 libdvbpsi10 libebml4v5
  libgles1-mesa libgles2-mesa libgroupsock8 libiso9660-8 liblirc-client0
  liblivemedia57 libmatroska6v5 libopenmpt-modplug1 libqt5x11extras5
  libresid-builder0c2a libsdl-image1.2 libsidplay2 libupnp6
  libusageenvironment3 libvcdinfo0 libvlc-bin libvlc5 libvlccore8 libxcb-xv0
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  libperl5.24 perl perl-base perl-modules-5.24
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,813 kB of archives.
After this operation, 9,216 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 https://cdn-aws.deb.debian.org/debian-security stretch/updates/main amd64 libperl5.24 amd64 5.24.1-3+deb9u3 [3,527 kB]
Get:2 https://cdn-aws.deb.debian.org/debian-security stretch/updates/main amd64 perl amd64 5.24.1-3+deb9u3 [219 kB]
Get:3 https://cdn-aws.deb.debian.org/debian-security stretch/updates/main amd64 perl-base amd64 5.24.1-3+deb9u3 [1,344 kB]
Get:4 https://cdn-aws.deb.debian.org/debian-security stretch/updates/main amd64 perl-modules-5.24 all 5.24.1-3+deb9u3 [2,723 kB]
Fetched 7,813 kB in 13s (573 kB/s)                                             
(Reading database ... 103645 files and directories currently installed.)
Preparing to unpack .../libperl5.24_5.24.1-3+deb9u3_amd64.deb ...
Unpacking libperl5.24:amd64 (5.24.1-3+deb9u3) over (5.24.1-3+deb9u2) ...
Preparing to unpack .../perl_5.24.1-3+deb9u3_amd64.deb ...
Unpacking perl (5.24.1-3+deb9u3) over (5.24.1-3+deb9u2) ...
Preparing to unpack .../perl-base_5.24.1-3+deb9u3_amd64.deb ...
Unpacking perl-base (5.24.1-3+deb9u3) over (5.24.1-3+deb9u2) ...
Setting up perl-base (5.24.1-3+deb9u3) ...
(Reading database ... 103645 files and directories currently installed.)
Preparing to unpack .../perl-modules-5.24_5.24.1-3+deb9u3_all.deb ...
Unpacking perl-modules-5.24 (5.24.1-3+deb9u3) over (5.24.1-3+deb9u2) ...
Setting up perl-modules-5.24 (5.24.1-3+deb9u3) ...
Setting up libperl5.24:amd64 (5.24.1-3+deb9u3) ...
Setting up perl (5.24.1-3+deb9u3) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for man-db (2.7.6.1-2) ...
rachel@tyrell-corp:~$ sudo apt --purge autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  libbasicusageenvironment1* libcddb2* libdirectfb-1.2-9* libdvbpsi10*
  libebml4v5* libgles1-mesa* libgles2-mesa* libgroupsock8* libiso9660-8*
  liblirc-client0* liblivemedia57* libmatroska6v5* libopenmpt-modplug1*
  libqt5x11extras5* libresid-builder0c2a* libsdl-image1.2* libsidplay2*
  libupnp6* libusageenvironment3* libvcdinfo0* libvlc-bin* libvlc5*
  libvlccore8* libxcb-xv0*
0 upgraded, 0 newly installed, 24 to remove and 0 not upgraded.
After this operation, 8,305 kB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 103645 files and directories currently installed.)
Removing libbasicusageenvironment1:amd64 (2016.11.28-1) ...
Removing libcddb2 (1.3.2-5) ...
Removing libdirectfb-1.2-9:amd64 (1.2.10.0-8+deb9u1) ...
Removing libdvbpsi10:amd64 (1.3.0-5) ...
Removing libmatroska6v5:amd64 (1.4.5-2) ...
Removing libebml4v5:amd64 (1.3.4-1) ...
Removing libgles1-mesa:amd64 (13.0.6-1+b2) ...
Removing libgles2-mesa:amd64 (13.0.6-1+b2) ...
Removing libgroupsock8:amd64 (2016.11.28-1) ...
Removing libvcdinfo0 (0.7.24+dfsg-0.2) ...
Removing libiso9660-8:amd64 (0.83-4.3+b1) ...
Removing liblirc-client0:amd64 (0.9.4c-9) ...
Removing liblivemedia57:amd64 (2016.11.28-1) ...
Removing libopenmpt-modplug1:amd64 (0.2.7386~beta20.3-3+deb9u2) ...
Removing libqt5x11extras5:amd64 (5.7.1~20161021-2) ...
Removing libresid-builder0c2a (2.1.1-15) ...
Removing libsdl-image1.2:amd64 (1.2.12-5+b8) ...
Removing libsidplay2 (2.1.1-15) ...
Removing libupnp6 (1:1.6.19+git20160116-1.2) ...
Removing libusageenvironment3:amd64 (2016.11.28-1) ...
Removing libvlc-bin:amd64 (2.2.7-1~deb9u1) ...
Removing libvlc5:amd64 (2.2.7-1~deb9u1) ...
Removing libvlccore8:amd64 (2.2.7-1~deb9u1) ...
Removing libxcb-xv0:amd64 (1.12-1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
(Reading database ... 103409 files and directories currently installed.)
Purging configuration files for libvcdinfo0 (0.7.24+dfsg-0.2) ...
Purging configuration files for libvlc5:amd64 (2.2.7-1~deb9u1) ...
Purging configuration files for libvlccore8:amd64 (2.2.7-1~deb9u1) ...
Purging configuration files for libvlc-bin:amd64 (2.2.7-1~deb9u1) ...
Purging configuration files for libcddb2 (1.3.2-5) ...
rachel@tyrell-corp:~$

Note that the default response to any query  (Y/n or y/N) is a capital letter (just hit Enter), the option response is lower case (type the letter, then hit Enter).

Online

#2 2018-07-16 23:32:00

hhh
That's easy!
Registered: 2015-09-17
Posts: 6,127
Website

Online

Board footer

Powered by FluxBB