The Quebec government says it's "ferociously" opposed to the end of the federal long-gun registry and will fight to keep using its data.

Public Security Minister Robert Dutil says the province will do everything in its power to keep the information.

Speaking at a news conference in Quebec City Wednesday, Dutil refused to rule out legal action.

Quebec has already said it would like to keep using some kind of long-gun registry if the Harper government kills the federal version, as planned.

But this week Ottawa announced that not only would it destroy the registry -- it would also destroy the data compiled over the past decade.

The registry was created at a cost of more than $1 billion in the wake of Montreal's Polytechnique massacre in 1989.