ycp1
August 10th, 2010, 07:41 PM
I am trying to understanding package tools in ubuntu. After I read some documents on internet. I did some exercise myself. And I got some questions. I installed fex package.
# aptitude install fex
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following NEW packages will be installed:
fex libdigest-md5-file-perl{a} xinetd{a}
The following packages will be REMOVED:
inetutils-inetd{a}
0 packages upgraded, 3 newly installed, 1 to remove and 4 not upgraded.
Need to get 306kB of archives. After unpacking 709kB will be used.
Do you want to continue? [Y/n/?] .
.
.
It installed 3 packages and removed 1 package. And I remove fex package.
# apt-get remove fex
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libdigest-md5-file-perl
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
fex
0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
After this operation, 463kB disk space will be freed.
Do you want to continue [Y/n]?
.
.
My understanding is that there are two unnecessary packages left. Those are libdigest-md5-file-perl and xinetd. And I thought that lost inetutils-inetd package. But I didn't.
# dpkg --get-selections | grep inetutils
inetutils-inetd deinstall
# dpkg --get-selections | grep xinetd
xinetd
So, I tried to remove not removed packages. They are libdigest-md5-file-perl and xinetd.
# apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libdigest-md5-file-perl
0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
After this operation, 73.7kB disk space will be freed.
Do you want to continue [Y/n]?
My first question is why this command doesn't remove xinetd package? And another question is apt-get command reinstall inetutils-inetd package when I ran "apt-get remove fex"? Thank you for your helps.
# aptitude install fex
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following NEW packages will be installed:
fex libdigest-md5-file-perl{a} xinetd{a}
The following packages will be REMOVED:
inetutils-inetd{a}
0 packages upgraded, 3 newly installed, 1 to remove and 4 not upgraded.
Need to get 306kB of archives. After unpacking 709kB will be used.
Do you want to continue? [Y/n/?] .
.
.
It installed 3 packages and removed 1 package. And I remove fex package.
# apt-get remove fex
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libdigest-md5-file-perl
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
fex
0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
After this operation, 463kB disk space will be freed.
Do you want to continue [Y/n]?
.
.
My understanding is that there are two unnecessary packages left. Those are libdigest-md5-file-perl and xinetd. And I thought that lost inetutils-inetd package. But I didn't.
# dpkg --get-selections | grep inetutils
inetutils-inetd deinstall
# dpkg --get-selections | grep xinetd
xinetd
So, I tried to remove not removed packages. They are libdigest-md5-file-perl and xinetd.
# apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libdigest-md5-file-perl
0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
After this operation, 73.7kB disk space will be freed.
Do you want to continue [Y/n]?
My first question is why this command doesn't remove xinetd package? And another question is apt-get command reinstall inetutils-inetd package when I ran "apt-get remove fex"? Thank you for your helps.