First at all, I update the list of available packages:
host:~/tmp# emidist-upgrade -u
Hit http://host sarge/main Packages
Hit http://www.planamente.ch testing/main Packages
Ign http://www.planamente.ch testing/main Release
Hit http://folug.linux.it unstable/main Packages
Ign http://folug.linux.it unstable/main Release
Hit http://host sarge/main Release
Hit http://host sarge/contrib Packages
Hit http://host sarge/contrib Release
Hit http://host sarge/non-free Packages
Hit http://host sarge/non-free Release
Hit http://host sarge/non-US/main Packages
Hit http://host sarge/non-US/main Release
Hit http://host sarge/non-US/contrib Packages
Hit http://host sarge/non-US/contrib Release
Hit http://host sarge/non-US/non-free Packages
Hit http://host sarge/non-US/non-free Release
Hit http://host woody/updates/main Packages
Hit http://host woody/updates/main Release
Hit http://host woody/updates/contrib Packages
Hit http://host woody/updates/contrib Release
Hit http://host woody/updates/non-free Packages
Hit http://host woody/updates/non-free Release
Hit http://host sarge/updates/main Packages
Hit http://host sarge/updates/main Release
Hit http://host sarge/updates/contrib Packages
Hit http://host sarge/updates/contrib Release
Hit http://host sarge/updates/non-free Packages
Hit http://host sarge/updates/non-free Release
Reading Package Lists... Done
Then, I want only download the new packages (if there are any):
host:~/tmp# emidist-upgrade -d
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
In this case I don't have any new packages to install, but if they
were any, I will proceed as following:
host:~/tmp# emidist-upgrade -i
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Now my system should be up to date.
I now verify if there are some libraries that are became orphan:
host:~/tmp# emidist-upgrade -o
libmedusa0
librsvg1
libsafe
libosp3c102
and I can safely remove them:
host:~/tmp# apt-get remove --purge libmedusa0 librsvg1 libosp3c102
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
libmedusa0* libosp3c102* librsvg1*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 2867kB disk space will be freed.
Do you want to continue? [Y/n]
Reading changelogs... Done
(Reading database ... 81514 files and directories currently installed.)
Removing libmedusa0 ...
Purging configuration files for libmedusa0 ...
Removing libosp3c102 ...
Removing librsvg1 ...
Purging configuration files for librsvg1 ...
I didn't remove the libsafe, because this is a special library and there
aren't any packages that depends from it. It's a good idea to install it,
because it helps against some dangerous operations that could be used for
a security attack.
The next step can be to transfer the just downloaded packages in a local
mirror, so that if any other machines need them, it isn't necessary to
download them any more.
This can be done with the -m swith:
host:~/tmp# emidist-upgrade -m
And finally, I can remove all the downloaded packages from the local
repository, because I already have a copy in my local mirror:
host:~/tmp# emidist-upgrade -c
|