The right way to upgrade?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

The right way to upgrade?

Postby marlar on Sun Mar 06, 2011 3:27 pm

I have learned from reading this forum that MintUpdate is not suited for LMDE. Ok, then what is the correct/recommended way of upgrading?

Is it these commands?

Code: Select all
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade


I usually install programs via aptitude because I like they way it let me inspect conflicts. Is it possible to do a system upgrade with aptitude?
marlar
Level 2
Level 2
 
Posts: 61
Joined: Thu Dec 10, 2009 9:30 am

Linux Mint is funded by ads and donations.
 

Re: The right way to upgrade?

Postby tdockery97 on Sun Mar 06, 2011 3:41 pm

Yes. You can do:
Code: Select all
sudo aptitude update && sudo aptitude dist-upgrade
Image

HP Pavilion 17 Notebook, 8GB DDR3, 2.5GHZ A10-APU, Radeon HD 8650G
Registered Linux User #520972
User avatar
tdockery97
Level 13
Level 13
 
Posts: 4864
Joined: Sun Jan 10, 2010 8:54 am
Location: Salem, Oregon

Re: The right way to upgrade?

Postby gotjazz on Sun Mar 06, 2011 3:54 pm

isn't that called full-upgrade in aptitude?
Image
User avatar
gotjazz
Level 4
Level 4
 
Posts: 386
Joined: Fri May 28, 2010 11:38 am
Location: Vienna, Austria

Re: The right way to upgrade?

Postby vrkalak on Sun Mar 06, 2011 5:14 pm

I use LMDE and I have done this ... necessary?

While I don't use MintUpdate to do my updates in Debian 6 'testing' (LMDE) ... I always accept ALL updates.

I believe it is necessary to change the MintUpdate settings to include Levels 4 and 5 . . . to make apt and aptitude install updates correctly. If the terminal or Synaptic are to install all updates it must be able to install everything.

So changing MintUpdate to include all Levels is a necessity?

Unless it would be possible to 'disable' MintUpdate?
Image
:: LinuxMint-Debian-Edition (Fluxbox) :: Manjaro/Arch (Xfce) ::
Registered Linux User: #497031 :: DeviantART Page
User avatar
vrkalak
Level 10
Level 10
 
Posts: 3271
Joined: Mon Jul 20, 2009 5:53 pm
Location: Santa Fe, NM, USA

Re: The right way to upgrade?

Postby malligt on Sun Mar 06, 2011 7:54 pm

There is a good thread on updating LMDE found here:

viewtopic.php?f=141&t=67561
malligt
Level 4
Level 4
 
Posts: 253
Joined: Sat Sep 11, 2010 12:58 pm

Re: The right way to upgrade?

Postby kwevej on Mon Mar 07, 2011 9:22 am

just put this into your ~/.bashrc
Code: Select all
alias mupdate='apt update && apt dist-upgrade'


log out/log in (or re-run bash)

then call mupdate from the terminal
User avatar
kwevej
Level 5
Level 5
 
Posts: 624
Joined: Mon Mar 22, 2010 3:35 pm
Location: Delft / Prague [@ LMDE]

Re: The right way to upgrade?

Postby TheGreatSudoku on Mon Mar 07, 2011 9:33 am

Synaptic also handles upgrades well. It tells you what additional packages will be installed when upgrading, as well if there are conflicts it tells you what packages will be removed, and gives you the option to not upgrade, keeping those packages safe.
↯Acer Aspire 7730 17" laptop ↝ Intel Core Duo 2.00Ghz x2  4gig DDR2 RAM ⤗ Intel Mobile 4 Graphics ➫ Kernel: 3.2.0-14-liquorix ZEN SMP PREEMPT x86_64  Linux Mint Debian Edition using Sid Repositories ⇨ KDE 4.7.4 ⟿ Installed: 11/23/2010↯
User avatar
TheGreatSudoku
Level 3
Level 3
 
Posts: 149
Joined: Tue Dec 07, 2010 12:05 am

Re: The right way to upgrade?

Postby craig10x on Mon Mar 07, 2011 10:27 am

I've used the Update Manager and also occasionally the terminal command to do the updates....how do you do that with the Package Manager? (never tried it that way).
craig10x
Level 7
Level 7
 
Posts: 1502
Joined: Fri Jul 03, 2009 12:44 pm

upgrading in Synaptic

Postby TheGreatSudoku on Wed Mar 09, 2011 8:07 pm

Upgrading in Synaptic is simple.

Step 1. Hit the "reload" button on the top left (this apt-get updates, reloads repository's listings of packagesClick ")
Step 2. Click the "status" bar in the lower left-hand corner
Step 3. Selected "Installed (upgradable)" from the left hand menu (note: if no packages are available for upgrade you won't see "Installed (upgradable)" in the list)
Step 4. You can highlight all the packages that need to be upgraded and mark them for upgrade. Any conflicts and/or additional packages needing to be installed as a result will pop up a warning dialog box and give you the option to either install or not install the updates.
↯Acer Aspire 7730 17" laptop ↝ Intel Core Duo 2.00Ghz x2  4gig DDR2 RAM ⤗ Intel Mobile 4 Graphics ➫ Kernel: 3.2.0-14-liquorix ZEN SMP PREEMPT x86_64  Linux Mint Debian Edition using Sid Repositories ⇨ KDE 4.7.4 ⟿ Installed: 11/23/2010↯
User avatar
TheGreatSudoku
Level 3
Level 3
 
Posts: 149
Joined: Tue Dec 07, 2010 12:05 am

Re: The right way to upgrade?

Postby amina on Wed Mar 16, 2011 5:32 pm

Hi,

this is the second time I get the broken packages error in MintUpdate so I did the updates from terminal as suggested many times.
But I have one problem with doing so and I'm curious if you know a solution for this: there is one specific package I do not want to upgrade.
I tried to lock/force the version in synaptic, and still, when I update using the terminal, it installs that update as well.
As I can say Y/n only once to all the changes, I do not really know how I could update everything else from there, without updating also that specific package.

Anybody has an idea?
(I know I could do the whole thing from synaptic, I am just wondering if there is a cli solution.)
amina
Level 3
Level 3
 
Posts: 140
Joined: Wed Mar 02, 2011 4:45 am

Re: The right way to upgrade?

Postby zerozero on Wed Mar 16, 2011 5:46 pm

amina,
check this post where vincent explains how to do that:

viewtopic.php?f=141&t=67561&start=20#p391573
zerozero
Level 16
Level 16
 
Posts: 6471
Joined: Tue Jul 07, 2009 2:29 pm

Re: The right way to upgrade?

Postby Koninator on Wed Mar 16, 2011 5:51 pm

man apt-get
maybe you can hold the package.

--ignore-hold
Ignore package Holds; This causes apt-get to ignore a hold placed on a package. This may be useful in conjunction with dist-upgrade to
override a large number of undesired holds. Configuration Item: APT::Ignore-Hold.

but i don't know how to hold the package, and also if this is what you are asking for.
http://ubuntuforums.org/showthread.php?t=539305
Koninator
Level 3
Level 3
 
Posts: 133
Joined: Sat Mar 14, 2009 9:57 am

Re: The right way to upgrade?

Postby amina on Wed Mar 16, 2011 6:13 pm

zerozero,
thanks, editing /etc/apt/preferences worked perfectly :)

Koninator,
I just did not know how to hold and then permanentrly unhold packages. I'm still not sure about the unhold part but I think apt-pinning is OK for now.

And thank you both for your quick response and help :)
amina
Level 3
Level 3
 
Posts: 140
Joined: Wed Mar 02, 2011 4:45 am

Re: The right way to upgrade?

Postby zerozero on Wed Mar 16, 2011 8:22 pm

glad i could help amina but you should thank vincent 8)
zerozero
Level 16
Level 16
 
Posts: 6471
Joined: Tue Jul 07, 2009 2:29 pm

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 3 guests