Why package works and doesnt need more but on clean isntall needs more packages?

Asked by Jānis Kangarooo

Why purges one package but installs more?
Why on update i didnt get thouse packages?

kangarooo@kangarooo-laptop:~$ sudo apt-get purge catfish
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  catfish*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 393kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 163895 files and directories currently installed.)
Removing catfish ...
Purging configuration files for catfish ...
Processing triggers for man-db ...
Processing triggers for menu ...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for hicolor-icon-theme ...
Processing triggers for python-support ...
kangarooo@kangarooo-laptop:~$ sudo apt-get autoremove && sudo apt-get clean && sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
kangarooo@kangarooo-laptop:~$ sudo apt-get install catfish
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  strigi-daemon doodle tracker beagle
Recommended packages:
  slocate
The following NEW packages will be installed:
  catfish
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 32.3kB of archives.
After this operation, 393kB of additional disk space will be used.
Get:1 http://lv.archive.ubuntu.com/ubuntu/ lucid/universe catfish 0.3.2-1 [32.3kB]
Fetched 32.3kB in 0s (126kB/s)
Selecting previously unselected package catfish.
(Reading database ... 163868 files and directories currently installed.)
Unpacking catfish (from .../catfish_0.3.2-1_all.deb) ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for menu ...
Processing triggers for man-db ...
Processing triggers for python-support ...
Setting up catfish (0.3.2-1) ...
Processing triggers for menu ...
kangarooo@kangarooo-laptop:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu catfish Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Because on a clean install you only have the packages at the old versions from the CD. An updated OS will have the newer packages needed. Installing on a fesh install will not only install the app you choose but will also pull in packages tyo get the packages it needs to work, up to speed.

Revision history for this message
Jānis Kangarooo (kangarooo) said :
#2

And 2nd question why i didnt get thouse packages witch were on install CD frozen version when on installed system i did Update?

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

The output in your question shows that you purged catfish, and then installed catfish again. There is no indication that any additional package was installed. The installation command just told you that whenever you install catfish, there is the recommendation to install also the package slocate, and there is the suggestion to install also strigi-daemon, doodle, tracker and beagle. These packages, however, were not installed but just listed as recommendation and suggestion.

Depending on certain configuration parameters the apt-get command will also install recommended and/or suggested packages whenever you install a package, but not when you upgrade a package.

Revision history for this message
Jānis Kangarooo (kangarooo) said :
#4

So catfish needs thouse packages but doesnt installs them?

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#5

No, catfish does not _need_ the packages that are shown as recommended and/or suggested, it only requires those that are listed as 'depends' (and in your case all these were already installed).

see http://people.canonical.com/~cjwatson/ubuntu-policy/policy.html/ch-relationships.html#s-binarydeps for an explanation.

Revision history for this message
Jānis Kangarooo (kangarooo) said :
#6

Thanks Manfred Hampl, that solved my question.