Re: Removing packages from unofficial repositories

2014-01-04 Thread Arthur de Jong
On Thu, 2014-01-02 at 12:52 -0500, Simon Ruggier wrote:
 However, I would expect that most users would not have the patience to
 do this via apt preferences, and if there is an easier way, I was not
 aware of it.

I also did this a few times. I remove the third-party repositories from
sources.list, apt-get update and check the output of

apt-show-versions  | egrep -v '/(testing|unstable).*uptodate'

Not ideal, but it works.

-- 
-- arthur - adej...@debian.org - http://people.debian.org/~adejong --


signature.asc
Description: This is a digitally signed message part


Re: Removing packages from unofficial repositories

2014-01-03 Thread Виталий Филиппов

Hi all, I recently decided to migrate my Debian system away from
deb-multimedia.org, where official packages exist. I used apt preferences
to help me downgrade packages from deb-multimedia back to Debian testing,
where an alternative version from testing exists. However, I would expect
that most users would not have the patience to do this via apt  
preferences,

and if there is an easier way, I was not aware of it.


AFAIK the apt_preferences method is rather simple:

Package: *
Pin: release o=Debian
Pin-Priority: 1001

With that setting 'apt-get dist-upgrade' downgrades DMO packages to  
official ones. At least it did in my case.


For me, finding out the correct preference setting was the hardest part  
here :)


--
With best regards,
  Vitaliy Filippov


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/op.w83z22x6xpoh24@vitalif.vhome



Re: Removing packages from unofficial repositories

2014-01-03 Thread Ben Armstrong
On 01/03/2014 07:41 AM, Виталий Филиппов wrote:
 AFAIK the apt_preferences method is rather simple:
 
 Package: *
 Pin: release o=Debian
 Pin-Priority: 1001
 
 With that setting 'apt-get dist-upgrade' downgrades DMO packages to
 official ones. At least it did in my case.
 
 For me, finding out the correct preference setting was the hardest part
 here :)

Yes, but it's an unsafe operation, since downgrades are still not
supported, and also does not discriminate between DMO packages and
non-DMO packages, so this could break unrelated packages.

Ben


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/52c6a8c2.6000...@sanctuary.nslug.ns.ca



Re: Removing packages from unofficial repositories

2014-01-03 Thread Octavio Alvarez
On 01/03/2014 03:41 AM, Виталий Филиппов wrote:
 AFAIK the apt_preferences method is rather simple:
 
 Package: *
 Pin: release o=Debian
 Pin-Priority: 1001
 
 With that setting 'apt-get dist-upgrade' downgrades DMO packages to
 official ones. At least it did in my case.

Does it work if you have Debian, deb-multimedia, another third-party
repo, and you just want to remove deb-multimedia?

Thanks.


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/52c6f111.5020...@alvarezp.ods.org



Re: Removing packages from unofficial repositories

2014-01-03 Thread Виталий Филиппов

Does it work if you have Debian, deb-multimedia, another third-party
repo, and you just want to remove deb-multimedia?


If you have other 3rdparty repos, you'll also need to set 1001 for all of  
them (except DMO), that should be enough.


And of course strictly speaking it may be unsafe, but I think it's OK in  
case of debian-multimedia...


--
With best regards,
  Vitaliy Filippov


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/op.w84gnznfxpoh24@vitalif.vhome



Re: Removing packages from unofficial repositories

2014-01-03 Thread Ben Armstrong
On 03/01/14 01:39 PM, Виталий Филиппов wrote:
 If you have other 3rdparty repos, you'll also need to set 1001 for all
 of them (except DMO), that should be enough.

Simon wanted a general, user-friendly way to deal with situations like
this. This is neither.

 And of course strictly speaking it may be unsafe, but I think it's OK in
 case of debian-multimedia...

Every downgrade whether from DMO back to Debian or within Debian runs
the risk of running into the kinds of breakage inherent to downgrades
(as indicated in the quote I gave earlier). I don't think that risk
should be downplayed.

Ben


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/52c71aa7.60...@sanctuary.nslug.ns.ca



Removing packages from unofficial repositories

2014-01-02 Thread Simon Ruggier
Hi all, I recently decided to migrate my Debian system away from
deb-multimedia.org, where official packages exist. I used apt preferences
to help me downgrade packages from deb-multimedia back to Debian testing,
where an alternative version from testing exists. However, I would expect
that most users would not have the patience to do this via apt preferences,
and if there is an easier way, I was not aware of it.

I'm writing to suggest that in the long term, Debian's package management
should have a general, user-friendly way to deal with situations like this,
such as a mechanism to remove a repository subscription, and all package
versions that came from it, while uninstalling as few as possible of  the
reverse dependencies.

Can anyone suggest which Debian package it would be appropriate to file
this as a bug on?


Re: Removing packages from unofficial repositories

2014-01-02 Thread Ben Armstrong
Simon,

On 01/02/2014 01:52 PM, Simon Ruggier wrote:
 I'm writing to suggest that in the long term, Debian's package
 management should have a general, user-friendly way to deal with
 situations like this, such as a mechanism to remove a repository
 subscription, and all package versions that came from it, while
 uninstalling as few as possible of  the reverse dependencies.

I don't think there is any appropriate package to file such a bug on as,
there can be no general way to downgrade, ever. To quote from our
infobot on irc:

Downgrading is not, nor will ever be supported by apt.  Programs change
their data in a way that can't be rolled back, and package maintainer
scripts support upgrades to new config file formats but not downgrades.

The infobot further suggests in order to remove deb-multimedia.org packages:

If you want to remove the packages from deb-multimedia.org and reinstall
the packages from Debian repositories, one could do this: dpkg --remove
--force-depends $(aptitude search
'?narrow(?version(CURRENT),?origin(Unofficial Multimedia Packages))'
--disable-columns -F%p); remove the dmm repository from sources.list;
apt-get update; apt-get install -f; install the still missing packages
which were removed in the former process ...

It is an unfortunate consequence of using third party repositories that
the process is so unfriendly to users. Since the state of the official
multimedia packages in Debian has vastly improved in recent releases,
fortunately fewer and fewer users have to go through this unpleasant
process.

Ben


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/52c5aa1a.90...@sanctuary.nslug.ns.ca