UPGRADE A PACKAGE AND IT'S DEPENDENCIES USING APT-GET

root@debian:~# apt-get install $(apt-cache depends gnome-session | grep Depends | sed "s/.*ends: //" | tr 'n' ' ')
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnome-session-bin is already the newest version.
gnome-session-bin set to manually installed.
gnome-session-common is already the newest version.
gnome-session-common set to manually installed.
The following extra packages will be installed:
  gkbd-capplet gnome-shell-common libebook-1.2-13 libecal-1.2-11 libedataserver-1.2-16 libedataserverui-3.0-1 libgjs0b
The following NEW packages will be installed:
  gkbd-capplet
The following packages will be upgraded:
  gnome-settings-daemon gnome-shell gnome-shell-common libebook-1.2-13 libecal-1.2-11 libedataserver-1.2-16
  libedataserverui-3.0-1 libgjs0b
8 upgraded, 1 newly installed, 0 to remove and 1026 not upgraded.
Need to get 958 kB/4,159 kB of archives.
After this operation, 151 kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 ftp://ftp.iitm.ac.in/debian/ sid/main gkbd-capplet amd64 3.4.0.2-1 [14.0 kB]
Get:2 ftp://ftp.iitm.ac.in/debian/ sid/main gnome-shell amd64 3.4.2-4 [280 kB]
Get:3 ftp://ftp.iitm.ac.in/debian/ sid/main gnome-shell-common all 3.4.2-4 [664 kB]
Fetched 958 kB in 4s (194 kB/s)
(Reading database ... 394386 files and directories currently installed.)
Preparing to replace gnome-settings-daemon 3.4.2+git20120925.a4c817-1 (using .../gnome-settings-daemon_3.4.2+git20121218.7c1322-1_amd64.deb) ...
Unpacking replacement gnome-settings-daemon ...
Selecting previously unselected package gkbd-capplet.
Unpacking gkbd-capplet (from .../gkbd-capplet_3.4.0.2-1_amd64.deb) ...
Preparing to replace gnome-shell 3.4.2-2 (using .../gnome-shell_3.4.2-4_amd64.deb) ...
Unpacking replacement gnome-shell ...
Preparing to replace gnome-shell-common 3.4.2-2 (using .../gnome-shell-common_3.4.2-4_all.deb) ...
Unpacking replacement gnome-shell-common ...
Preparing to replace libedataserver-1.2-16 3.4.3-1 (using .../libedataserver-1.2-16_3.4.4-1_amd64.deb) ...
Unpacking replacement libedataserver-1.2-16 ...
Preparing to replace libebook-1.2-13 3.4.3-1 (using .../libebook-1.2-13_3.4.4-1_amd64.deb) ...
Unpacking replacement libebook-1.2-13 ...
Preparing to replace libecal-1.2-11 3.4.3-1 (using .../libecal-1.2-11_3.4.4-1_amd64.deb) ...
Unpacking replacement libecal-1.2-11 ...
Preparing to replace libedataserverui-3.0-1 3.4.3-1 (using .../libedataserverui-3.0-1_3.4.4-1_amd64.deb) ...
Unpacking replacement libedataserverui-3.0-1 ...
Preparing to replace libgjs0b 1.32.0-2 (using .../libgjs0b_1.32.0-4_amd64.deb) ...
Unpacking replacement libgjs0b ...
Processing triggers for libglib2.0-0:amd64 ...
Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Setting up gnome-settings-daemon (3.4.2+git20121218.7c1322-1) ...
Setting up gkbd-capplet (3.4.0.2-1) ...
Setting up libedataserver-1.2-16 (3.4.4-1) ...
Setting up libebook-1.2-13 (3.4.4-1) ...
Setting up libecal-1.2-11 (3.4.4-1) ...
Setting up libedataserverui-3.0-1 (3.4.4-1) ...
Setting up libgjs0b (1.32.0-4) ...
Setting up gnome-shell-common (3.4.2-4) ...
Setting up gnome-shell (3.4.2-4) ...
root@debian:~#

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s