Author Topic: (SOLVED) apt-get vs. Synaptic  (Read 203 times)

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1517
  • In theory, theory=practice, in practice ???
(SOLVED) apt-get vs. Synaptic
« on: June 04, 2013, 11:15:57 AM »
Used apt-get today to do upgrades and 7 packages, primarily
mesa related,  were held back.

Using Synaptic it will upgrade these packages, install 9 packages,
and remove 2 packages AFAIR.

Is this normal, OK, or whatever.

Wonder why apt-get upgrade held them back ?

THX

Yankee
« Last Edit: June 04, 2013, 12:20:03 PM by Yankee »
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Offline pags

  • Hero Member
  • *****
  • Posts: 2602
  • Keep it clean.
Re: apt-get vs. Synaptic
« Reply #1 on: June 04, 2013, 11:18:48 AM »
Used apt-get today to do upgrades and 7 packages, primarily
mesa related,  were held back.

Using Synaptic it will upgrade these packages, install 9 packages,
and remove 2 packages AFAIR.

Is this normal, OK, or whatever.

Wonder why apt-get upgrade held them back ?

THX

Yankee

Because
Code: [Select]
apt-get upgrade
is not the correct way to upgrade this rolling release!

If you're not sure, you should be using Synaptic, as it handles all the dependencies.

If, however, you're insistent on using apt-get (even though it is discouraged, and therefore unsupported), the correct syntax is:
Code: [Select]
apt-get dist-upgrade

Cheers!
:)

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1517
  • In theory, theory=practice, in practice ???
Re: apt-get vs. Synaptic
« Reply #2 on: June 04, 2013, 11:24:37 AM »
If, however, you're insistent on using apt-get (even though it is discouraged, and therefore unsupported), the correct syntax is:
Code: [Select]
apt-get dist-upgrade

Cheers!
:)

Just tried it today for variety, and I did not know that.
Crashed an upgrade last night and had some duplicate
packages to remove but everything appears normal
after that.

OK then, I'll just run these upgrades thru Synaptic then.

thanks for the response.

Yankee   :D
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6470
  • I'm going South
Re: apt-get vs. Synaptic
« Reply #3 on: June 04, 2013, 11:48:34 AM »
If, however, you're insistent on using apt-get (even though it is discouraged, and therefore unsupported), the correct syntax is:
Code: [Select]
apt-get dist-upgrade

Cheers!
:)

Just tried it today for variety, and I did not know that.
Crashed an upgrade last night and had some duplicate
packages to remove but everything appears normal
after that.

OK then, I'll just run these upgrades thru Synaptic then.

thanks for the response.

Yankee   :D

Running "apt-get update && apt-get dist-upgrade" is more ore less equivalent to updating your system with Synaptic. But using Synaptic is safer and makes it easier to see what apt-get is actually going to do.

It's using "apt-get upgrade" without "dist-" that sooner or later will break your system. If you glance at the man page for apt-get you will learn that the plain "apt-get upgrade" command means that "under no circumstances are currently installed packages removed, nor are packages that are not already installed retrieved and installed".

Now, this sounds safer than using "apt-get -dist-upgrade", which may remove less important packages and install new ones. It isn't. "apt-get upgrade" ignores that dependencies change and may leave you with a partially upgraded and broken system.

If you don't have any special needs the safest choice is using Synaptic. It will tell you what is going to be installed and what is going to be removed before you hit the "Apply" button.
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3794
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: apt-get vs. Synaptic
« Reply #4 on: June 04, 2013, 11:56:04 AM »
@Bald Brick
+1
This is clear wrote...
Regards
Daniel

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6470
  • I'm going South
Re: apt-get vs. Synaptic
« Reply #5 on: June 04, 2013, 11:59:12 AM »
Thanks.
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1517
  • In theory, theory=practice, in practice ???
Re: apt-get vs. Synaptic
« Reply #6 on: June 04, 2013, 12:19:23 PM »
Perhaps one further question.

"apt-get install --no-install-recommends somepackage"

Some people use the above command to install a
package where many other packages are pulled in.
Haven't tried it with PCL but, for example, Thunar,
used to pull in 300 MB's of other packages.   The
above command would or should eliminate those
extras from being included and just let Thunar be
installed.

Is this OK or a better way available to do that.

thanks for the response(s).

Yankee     :D
« Last Edit: June 04, 2013, 01:09:47 PM by Yankee »
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Re: apt-get vs. Synaptic
« Reply #7 on: June 04, 2013, 12:28:18 PM »
Perhaps one further question.

"apt-get install --noinstall-recommends somepackage"

Some people use the above command to install a
package where many other packages are pulled in.
Haven't tried it with PCL but, for example, Thunar,
used to pull in 300 MB's of other packages.   The
above command would or should eliminate those
extras from being included and just let Thunar be
installed.

Is this OK or a better way available to do that.

thanks for the response(s).

Yankee     :D

Without those "extra" packages the requested application won't work right, if at all. Bad move, that will lead to a borked system.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6470
  • I'm going South
Re: apt-get vs. Synaptic
« Reply #8 on: June 04, 2013, 01:23:28 PM »
"apt-get install --no-install-recommends somepackage"

Some people use the above command to install a
package where many other packages are pulled in.

...

Is this OK or a better way available to do that.

I think O-P was correct when he told you that it isn't OK. But for the sake of completeness: you can achieve the same result in an equally unsafe way from within Synaptic. Just untick "Consider recommended packages as dependencies" in the "Preferences" dialogue under "Settings". (In principle it shouldn't break your system - although it may - but it will lead to less than optimal functionality in your installed programs.)

« Last Edit: June 04, 2013, 01:29:48 PM by Bald Brick »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1517
  • In theory, theory=practice, in practice ???
Re: apt-get vs. Synaptic
« Reply #9 on: June 04, 2013, 02:24:16 PM »
Just untick "Consider recommended packages as dependencies" in the "Preferences" dialogue under "Settings". (In principle it shouldn't break your system - although it may - but it will lead to less than optimal functionality in your installed programs.)

Mine is unticked.   This install is well filled with packages and I don't
recall that item ever being ticked or even noticed.     Have to consider
that item as use at some risk then, as was said.     The basic installs I
must be doing then,  the machine is doing 100% with everything on here,
so far.     I usually don't install every plugin available,   as on this LXDE,
the basic program(s) have enough features when I install something.

Next time I get 100's of MB's of extra packages I'll take a look at that
option just to see what it would do then.    And post a question.

thanks again,

Yankee
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE