LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 04-08-2013, 12:54 AM   #16
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,591

Rep: Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233

Hi,

Quote:
Originally Posted by EDDY1 View Post
I used to use aptitude faithfully until I tried upgrading from squeeze to wheezy which failed while using aptitude but succeeded using apt-get.
it seems you switched one release too late. Debian has recommended apt-get over aptitude for non-interactive commandline package management since the release of squeeze. See:

http://www.debian.org/releases/squee...radingpackages

Evo2.
 
1 members found this post helpful.
Old 04-08-2013, 02:16 AM   #17
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,224

Rep: Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578
Quote:
Originally Posted by jdkaye View Post
Ah, I understand. I've only ever used aptitude on testing. Perhaps that may explain the difference in our experiences.
ciao,
jdk
Yes I switched my squeeze installation to testing & am going to allow it to upgrade to the next testing, although I have another installation that was installed as wheezy which will remain wheezy until the next stable comes along.
Quote:
it seems you switched one release too late. Debian has recommended apt-get over aptitude for non-interactive commandline package management since the release of squeeze. See:

http://www.debian.org/releases/squee...radingpackages

Evo2.
Yes I guess I did, but really was into aptitude & still am,as it doesn't try to autoremove my whole desktop which has happened before. Although I was able to just do a simple "aptitude install gnome"
Also I really only got started with linux at squeeze, never had a working lenny system. Lets just say I tried getting lenny running, with no knowledge at all what I was doing.

Last edited by EDDY1; 04-08-2013 at 02:18 AM.
 
Old 04-08-2013, 03:00 AM   #18
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,981

Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,



it seems you switched one release too late. Debian has recommended apt-get over aptitude for non-interactive commandline package management since the release of squeeze. See:

http://www.debian.org/releases/squee...radingpackages

Evo2.
I think "non-interactive" is the key phrase here. Much of my package management (e.g. apt-pinning) involves interaction. Be that as it may, I have not experienced any problems using aptitude.
jdk
 
Old 04-08-2013, 03:12 AM   #19
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,591

Rep: Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233
Hi,

Quote:
Originally Posted by jdkaye View Post
I think "non-interactive" is the key phrase here. Much of my package management (e.g. apt-pinning) involves interaction.
Interesting. IIRC, any pinning I've done in the past was achieved by editing /etc/apt/preferences.

Quote:
Be that as it may, I have not experienced any problems using aptitude.
I was using aptitude for a while and was quite happy, but since I almost never used the interactive mode, switching back to apt-get was a sensible choice for me.

Cheers,

Evo2.
 
Old 04-08-2013, 03:50 AM   #20
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD, DragonFly BSD
Posts: 1,411

Rep: Reputation: Disabled
apt-get is recommended for dist-upgrade, but nothing else. The reason apt-get is recommended over aptitude in this scenario is because when upgrading from one release to the next, a "sledge hammer" approach is often needed. aptitude's dependency resolver is just too advanced (too fussy) in such cases.

Personally I prefer aptitude "non-interactive" mode above all else. It's horses for courses.
 
Old 04-08-2013, 03:56 AM   #21
descendant_command
Member
 
Registered: Mar 2012
Posts: 859

Rep: Reputation: 191Reputation: 191
Quote:
Originally Posted by caravel View Post
It's horses for courses.
But if you're on the wrong course, horse choice is largely irrelevant.
 
Old 04-08-2013, 04:02 AM   #22
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,591

Rep: Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233
Quote:
Originally Posted by caravel View Post
apt-get is recommended for dist-upgrade, but nothing else.
Sorry, but that seems to be wrong.

From the introduction of Chapter 2 of the Debian Reference. http://www.debian.org/doc/manuals/de...e/ch02.en.html

Quote:
The Debian package management system has a rich history and many choices for the front end user program and back end archive access method to be used. Currently, we recommend the following.
- apt-get(8) for all commandline operations, including package installation and removal, and dist-upgrades.
- aptitude(8) for an interactive text interface to manage the installed packages and to search the available packages.
- update-manager(8) for keeping your system up-to-date if you're running the default GNOME desktop.
Evo2.
 
1 members found this post helpful.
Old 04-08-2013, 04:45 AM   #23
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD, DragonFly BSD
Posts: 1,411

Rep: Reputation: Disabled
Ok fair enough, that's odd. I've used aptitude for years (running stable, testing and unstable) and never had a problem.
 
Old 04-08-2013, 11:04 AM   #24
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,981

Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

Interesting. IIRC, any pinning I've done in the past was achieved by editing /etc/apt/preferences.
Evo2.
Indeed you do have to set up /etc/apt/preferences. Something along the lines of:
Code:
Package: *
Pin: release o=Debian,a=unstable
Pin-Priority: 600

Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 650

Package: *
Pin: release o=qt-kde,a=experimental-snapshots
Pin-Priority: 101
But then if you use aptitude it's:
Code:
aptitude -t unstable install packagename.deb
Does that ring a bell?
jdk
 
Old 04-08-2013, 11:35 AM   #25
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,239

Rep: Reputation: 178Reputation: 178
Quote:
Originally Posted by jdkaye View Post
Does that ring a bell?
jdk
An alarm bell.

The OP asked for something that tracks a certain package on Debian stable in a production environment.

Main issue:
Stable => A well tested snapshot where updates are being backported.
Testing/unstable/experimental => constant development, major package updates.

While I use a similar setup on my desktop/workstations, I honestly wouldn't recommend this for stable "production servers".

Also keep in mind that testing/unstable/experimental will always keep evolving further away from stable after the initial release.

Last edited by jens; 04-08-2013 at 11:37 AM.
 
Old 04-08-2013, 11:51 AM   #26
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD, DragonFly BSD
Posts: 1,411

Rep: Reputation: Disabled
Quote:
Originally Posted by jdkaye View Post
Code:
aptitude -t unstable install packagename.deb
Does that ring a bell?
jdk
apt-get/aptitude are not used to install .deb packages directly, for that use dpkg e.g.
Code:
# dpkg -i packagename.deb
 
Old 04-08-2013, 04:45 PM   #27
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,347

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Quote:
Originally Posted by EDDY1 View Post
I used to use aptitude faithfully until I tried upgrading from squeeze to wheezy which failed while using aptitude but succeeded using apt-get.
Up until Squeeze aptitude was the recommended version upgrade tool by Debian.

With the change to Squeeze that recommendation was changed to apt-get by Debian.
 
Old 04-08-2013, 05:22 PM   #28
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,591

Rep: Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233
Hi,

Quote:
Originally Posted by jdkaye View Post
But then if you use aptitude it's:
Code:
aptitude -t unstable install packagename.deb
Does that ring a bell?
Sure, but that's not aptitude specific*, apt-get also has the -t option:

Quote:
Originally Posted by apt-get(8)
Code:
       -t, --target-release, --default-release
           This option controls the default input to the policy
           engine; it creates a default pin at priority 990 using the
           specified release string. This overrides the general
           settings in /etc/apt/preferences. Specifically pinned
           packages are not affected by the value of this option. In
           short, this option lets you have simple control over which
           distribution packages will be retrieved from. Some common
           examples might be -t '2.1*', -t unstable or -t sid.
           Configuration Item: APT::Default-Release; see also the
           apt_preferences(5) manual page.
Cheers,

Evo2.

* Assuming the '.deb' was something your fingers typed without input from your brain ;-)
 
Old 04-08-2013, 10:48 PM   #29
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,224

Rep: Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578
I think this thread is stuck in "Dependency Resolution loop" & the original question has a few answers but may have not been resolved for the user.
Quote:
1.Does it generally cause any problems if you want to keep the newest version of a particular piece of software installed on debian stable?
This is possibly true for 1 & 2:
If you must have a newer version, upgrading to Testing is an infinitely better idea than adding Sid or Testing packages to Stable. If you do not want to upgrade, but a package is not in backports, you could build it from source. I shall not try to give any specific advice, since I have never tried it. (I have theoretical knowledge, but no practical experience.)
Quote:
2.I've read somewhere that using a sid package on debian stable is not a good idea. What about just installing the software manually?
Quote:
3.If you want to do this is it just a better idea to "upgrade" your distro from stable to testing, even if it was a production server?
Some will say no, but testing will be stable soon & you will have to upgrade or stick with old stable.
Quote:
4.I forgot to add that there are no backports for this package.
You never said what the package is.

I must apologize to the OP for getting this thread off-topic.

Last edited by EDDY1; 04-08-2013 at 10:50 PM.
 
Old 04-09-2013, 10:43 AM   #30
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,239

Rep: Reputation: 178Reputation: 178
Quote:
Originally Posted by EDDY1 View Post
Some will say no, but testing will be stable soon & you will have to upgrade or stick with old stable.
You never said what the package is.
Small warning here:
If you're already planning to use Wheezy as a stable release, use "wheezy" and not "testing" in your config files.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Install Or Upgrade To Latest Stable Version Of Rsyslog On CentOS 5 And 6 LXer Syndicated Linux News 0 06-13-2012 01:30 PM
[SOLVED] Anyone using RHEL6? What is the latest kernel version(stable)? hello_tan Red Hat 3 09-27-2011 02:15 AM
How Do I Upgrade From FreeBSD 6.1 To The Latest Stable Version? shachter *BSD 18 08-18-2011 07:33 PM
What is the latest stable version of the kernel? nos1833 Debian 26 05-23-2007 11:12 AM
Problems to compile the latest stable version of kernel (2.6.15.4) stomach Linux - General 3 02-24-2006 08:57 PM


All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration