SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2014-05-16 11:15:09

PDA1
#! Member
Registered: 2014-01-30
Posts: 58

Update Crunchbang?

How do I update the basic #! system?

I know that Ubuntu nags me with a pop up screen about some sort of security patches or updates. Does #! do the same?

How?

Thanks

Offline

Be excellent to each other!

#2 2014-05-16 11:29:04

Head_on_a_Stick
#! Cat
From: London, England
Registered: 2014-01-21
Posts: 728

Re: Update Crunchbang?

In a terminal use:

sudo aptitude update && sudo aptitude upgrade

You could also use:

sudo aptitude dist-upgrade

I'm actually not at all sure what the difference between "upgrade" & "dist-upgrade" is, but I'm sure @Alad will be along in a minute to explain things far better than ignorant old me... smile
Debian doesn't believe in nagging... tongue


If you want a good answer, ask a good question
Do you have an X-Y Problem?
Don't be a Help Vampire

Offline

#3 2014-05-16 11:37:56

speedy_86
Member
Registered: 2014-02-27
Posts: 29

Re: Update Crunchbang?

Guess I'll have to fill in for Alad ad interim  wink

The dist-upgrade will remove or replace packages if needed. The normal upgrade command will only update the packages. Source on Debian Forum - they talk about apt-get, but don't let that deter you, they can both be used for that, I think one gives you more control and the other better logging, but as I never used aptitude up to now I can only say what I've read on the #! forum and even that is a hazy memory tbh.

And no Debian and #! do not believe in nagging as H_o_a_S wrote, it's your system and your responsibility to upgrade

Last edited by speedy_86 (2014-05-16 11:43:34)


Qui audet adipiscitur./Who dares, wins./Quien se atreve, gana./Wer wagt, gewinnt./Qui ose, gagne./Chi osa, vince.

Certainty of death, small chance of success, what are we waiting for?
- Gimli son of Gloín

Offline

#4 2014-05-16 12:26:39

Alad
#! Little Rocket Man
From: bugs.debian.org
Registered: 2014-02-20
Posts: 840
Website

Re: Update Crunchbang?

Besides the above, in practice you'll use dist-upgrade when packages are "held back" - see here for details. I'm partial to aptitude as it's more elaborate when solving conflicts.

I also recommend installing apt-listbugs, to know ahead of time if something will break

sudo aptitude install apt-listbugs

PS: If you're on testing/sid, apt 1.0 gives you more to play with...  angel

Last edited by Alad (2014-05-16 12:31:08)

Offline

#5 2014-05-16 12:44:51

PDA1
#! Member
Registered: 2014-01-30
Posts: 58

Re: Update Crunchbang?

I was looking for something that would only update the essential operating system files and security stuff that probably needs updating. I noticed that using "sudo aptitude dist-upgrade" wants to remove one of the programs (OpenCPN) that I need.

Which command should I use?

Offline

#6 2014-05-16 13:12:01

Alad
#! Little Rocket Man
From: bugs.debian.org
Registered: 2014-02-20
Posts: 840
Website

Re: Update Crunchbang?

Please post the contents of both

apt-get -s upgrade
apt-cache policy | grep -vi transl

Last edited by Alad (2014-05-16 13:15:48)

Offline

#7 2014-05-16 14:39:06

anon123
Member
Registered: 2014-04-19
Posts: 25

Re: Update Crunchbang?

There are some GUI options if you would prefer.  You can install "gnome-packagekit" from synaptic and run:

gpk-update-viewer

Or there is "update-notifier"

This will also install "update-manager-gnome" then whenever you login it will automatically check for updates and notify you to install when there are updates.

Offline

#8 2014-05-16 17:34:00

Bob E
#! Member
Registered: 2012-01-12
Posts: 58

Re: Update Crunchbang?

speedy_86 wrote:

...it's your system and your responsibility to upgrade

Excellent statement!

I just open synaptic, hit reload, and look for Installed (upgradable) in the list. That way I can see WHAT is being upgraded. The recent Catfish bug is a good example of something I didn't want to re-install after patching.

http://s19.postimg.org/vaytm5j37/upgradable.png

Offline

#9 2014-05-16 19:06:48

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,008
Website

Re: Update Crunchbang?

I prefer and use "apt":

alias up2='sudo apt-get update && sudo apt-get dist-upgrade --no-install-recommends'
alias hld='sudo apt-mark hold'
alias unhld='sudo apt-mark unhold'

And as suggested earlier: apt-listbugs <<-- that is a life saver!

At the moment (for a while now) grub has problems in SID:

  1. unhold the grub stuff: unhld grub-common grub-pc grub-pc-bin grub2 grub2-common

  2. run up2 - update & dist-upgrade

  3. still has errors - run hld grub-common grub-pc grub-pc-bin grub2 grub2-common

  4. run up2 once mote to test.

Just to show

 16 May 14 | 15:53:36 ~
    $ up2
Hit http://ftp.us.debian.org sid InRelease
Hit http://ftp.us.debian.org sid/main amd64 Packages/DiffIndex
Hit http://ftp.us.debian.org sid/non-free amd64 Packages/DiffIndex
Hit http://ftp.us.debian.org sid/contrib amd64 Packages/DiffIndex
Hit http://ftp.us.debian.org sid/contrib Translation-en/DiffIndex
Hit http://ftp.us.debian.org sid/main Translation-en/DiffIndex
Hit http://ftp.us.debian.org sid/non-free Translation-en/DiffIndex
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  grub-common grub-pc grub-pc-bin grub2 grub2-common
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
 
 16 May 14 | 15:53:47 ~
    $ unhld grub-common grub-pc grub-pc-bin grub2 grub2-common
grub-pc was already not hold.
Canceled hold on grub-common.
Canceled hold on grub-pc-bin.
Canceled hold on grub2.
Canceled hold on grub2-common.
 
 16 May 14 | 15:54:24 ~
    $ up2
Hit http://ftp.us.debian.org sid InRelease
Hit http://ftp.us.debian.org sid/main amd64 Packages/DiffIndex
Hit http://ftp.us.debian.org sid/non-free amd64 Packages/DiffIndex
Hit http://ftp.us.debian.org sid/contrib amd64 Packages/DiffIndex
Hit http://ftp.us.debian.org sid/contrib Translation-en/DiffIndex
Hit http://ftp.us.debian.org sid/main Translation-en/DiffIndex
Hit http://ftp.us.debian.org sid/non-free Translation-en/DiffIndex
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  grub-common grub-pc grub-pc-bin grub2 grub2-common
5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4,282 kB of archives.
After this operation, 7,306 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
 
 16 May 14 | 15:54:45 ~
    $ hld grub-common grub-pc grub-pc-bin grub2 grub2-common
grub-common set on hold.
grub-pc set on hold.
grub-pc-bin set on hold.
grub2 set on hold.
grub2-common set on hold.
 
 16 May 14 | 15:55:06 ~
    $ up2
Hit http://ftp.us.debian.org sid InRelease
Hit http://ftp.us.debian.org sid/main amd64 Packages/DiffIndex
Hit http://ftp.us.debian.org sid/non-free amd64 Packages/DiffIndex
Hit http://ftp.us.debian.org sid/contrib amd64 Packages/DiffIndex
Hit http://ftp.us.debian.org sid/contrib Translation-en/DiffIndex
Hit http://ftp.us.debian.org sid/main Translation-en/DiffIndex
Hit http://ftp.us.debian.org sid/non-free Translation-en/DiffIndex
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  grub-common grub-pc grub-pc-bin grub2 grub2-common
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
 
 16 May 14 | 15:55:18 ~
    $

As seen, there are a few options ... pick your flavour!
That's the fun of Linux. Customize it the way you want, use it the way you want.


#! Conky = 13 Threads & the Conky Archives | Conky PitStop | OHCG'er
#! Forum Moderator   |   StartPage -  protect your privacy   |   BBQ Linux

Offline

#10 2014-05-17 11:23:59

PDA1
#! Member
Registered: 2014-01-30
Posts: 58

Re: Update Crunchbang?

Alad wrote:

Please post the contents of both

apt-get -s upgrade
apt-cache policy | grep -vi transl
$ apt-get -s upgrade
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  opencpn
The following packages will be upgraded:
  dbus libgnutls26 rtkit
3 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Inst libgnutls26 [2.12.20-8] (2.12.20-8+deb7u1 Debian-Security:7.0/stable [i386])
Inst dbus [1.6.8-1] (1.6.8-1+deb7u1 Debian:7.4/stable, Debian-Security:7.0/stable [i386])
Inst rtkit [0.10-2] (0.10-2+wheezy1 Debian:7.4/stable [i386])
Conf libgnutls26 (2.12.20-8+deb7u1 Debian-Security:7.0/stable [i386])
Conf dbus (1.6.8-1+deb7u1 Debian:7.4/stable, Debian-Security:7.0/stable [i386])
Conf rtkit (0.10-2+wheezy1 Debian:7.4/stable [i386])
$ apt-cache policy | grep -vi transl  
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://ppa.launchpad.net/nohal/opencpn/ubuntu/ lucid/main i386 Packages
     release v=10.04,o=LP-PPA-nohal-opencpn,a=lucid,n=lucid,l=OpenCPN,c=main
     origin ppa.launchpad.net
 500 http://ppa.launchpad.net/nohal/opencpn/ubuntu/ precise/main i386 Packages
     release v=12.04,o=LP-PPA-nohal-opencpn,a=precise,n=precise,l=OpenCPN,c=main
     origin ppa.launchpad.net
 500 http://security.debian.org/ wheezy/updates/main i386 Packages
     release v=7.0,o=Debian,a=stable,n=wheezy,l=Debian-Security,c=main
     origin security.debian.org
 500 http://http.debian.net/debian/ wheezy/non-free i386 Packages
     release v=7.4,o=Debian,a=stable,n=wheezy,l=Debian,c=non-free
     origin http.debian.net
 500 http://http.debian.net/debian/ wheezy/contrib i386 Packages
     release v=7.4,o=Debian,a=stable,n=wheezy,l=Debian,c=contrib
     origin http.debian.net
 500 http://http.debian.net/debian/ wheezy/main i386 Packages
     release v=7.4,o=Debian,a=stable,n=wheezy,l=Debian,c=main
     origin http.debian.net
1001 http://packages.crunchbang.org/waldorf/ waldorf/main i386 Packages
     release o=CrunchBang,a=waldorf,n=waldorf,l=CrunchBang,c=main
     origin packages.crunchbang.org
Pinned packages:

Offline

#11 2014-05-17 12:28:39

Alad
#! Little Rocket Man
From: bugs.debian.org
Registered: 2014-02-20
Posts: 840
Website

Re: Update Crunchbang?

Kinda saw this one coming ... you can't use Ubuntu PPAs in Debian.

http://opencpn.org/ocpn/compiling_source_linux

Last edited by Alad (2014-05-17 12:32:40)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo