LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-06-2019, 02:17 PM   #1
finalturismo
Member
 
Registered: May 2019
Posts: 120

Rep: Reputation: Disabled
How to make APT search for older packages?


So i have been using wine to play Starcraft 2 just about flawlessly on Linux for a few months now. When one day i upgraded to wine 4.9 and it suddenly stopped working on me.


I looked on the wine website only to find out , that it was the upgrade it self and others had the same issue.


My issue is how do i downgrade?

I used apt-cache to search for wine 4.8 and it shows up but i dont think i am getting the correct full package name.

I had the wine repo added to my sources , i would really just like to make APT search the entire repo for ALL versions. But APT only searches current versions.

Any of you guys have a solution for this. I know its simple but i already spent a few hours Googling and using help on the commands and i cant seem to find anything.

I could install it from source, but i should not have too and plus i need to know how to do something as simple as a downgrade, using package managers. Its much easier and more efficient.

Any help would be GREATLY appreciated.

Last edited by finalturismo; 06-06-2019 at 02:18 PM.
 
Old 06-06-2019, 02:45 PM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
packages.debian.org

One way to get / search for older .deb's. If you haven't removed packages, they're stored in /var/cache/apt/archives/.
 
Old 06-06-2019, 03:25 PM   #3
finalturismo
Member
 
Registered: May 2019
Posts: 120

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
packages.debian.org

One way to get / search for older .deb's. If you haven't removed packages, they're stored in /var/cache/apt/archives/.
I just looked their after you said that, and it is no longer there.


So lets say i want to download wine 4.8 and i get the .deb from pkgs.org

If i put all the wine packages in a folder and run dpkg -i * would that do the trick?

Or should i just start building from source....?

I am still slightly confused because if the wine repository has all the previous wine versions why cant you enable it to search an older package?

Are there any package managers that enable you to search older package versions on a developers repository?

I thought the only reason apt couldn't search the entire repository was because it would flood the terminal with a stupid amount of packages.

Correct me if i am wrong?

I know the dpkg -i has a force downgrade option but than i go back to dependency hell (the real hell) if i do that.

The idea of having to download every single package part by part sounds kind of daunting.

Just seeing if there is a more effective way of doing this.

Best Regards,

Last edited by finalturismo; 06-06-2019 at 03:28 PM.
 
Old 06-06-2019, 03:30 PM   #4
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,001
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
When I've had to do it, I would do:

Code:
apt remove wine
apt install /path/to/downgraded/wine
apt-mark hold wine
Now yes, depending on dependencies you may need to install more than just the wine binary itself, but the advantage to using apt to do so is it will TRY to solve those dependencies for you.
 
Old 06-06-2019, 04:20 PM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
The dpkg -i with "all" the packages in a path would work. But you'll have dependency hell aka "ALL" the packages need to be there. It would be easier to downgrade distro versions (for me) and run everything from the "older" distro (perhaps in a chroot with shared resources). Although you might have better luck looking for a flatpak or snap of your game. If it exists, that would greatly simplify things.
 
Old 06-06-2019, 04:22 PM   #6
finalturismo
Member
 
Registered: May 2019
Posts: 120

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Timothy Miller View Post
When I've had to do it, I would do:

Code:
apt remove wine
apt install /path/to/downgraded/wine
apt-mark hold wine
Now yes, depending on dependencies you may need to install more than just the wine binary itself, but the advantage to using apt to do so is it will TRY to solve those dependencies for you.


I uninstalled wine 4.9 and installed 4.8 with a package from dpkgs.org after i installed it i did a --fix-broken install

it couldn't find wine-staging:i386 and it reverted back to 4.9 some how.

What does the apt-mark hold do???
 
Old 06-06-2019, 04:29 PM   #7
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,001
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
That tells it to not upgrade it again after you've installed the downgraded version. So it will ignore newer versions until such a point as you remove the hold. It will also therefore not upgrade a dependency that would break the version you have installed, and prevent packages that depended upon it to upgrade if the upgrade required a newer version.

Last edited by Timothy Miller; 06-06-2019 at 04:31 PM.
 
Old 06-06-2019, 04:54 PM   #8
finalturismo
Member
 
Registered: May 2019
Posts: 120

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Timothy Miller View Post
That tells it to not upgrade it again after you've installed the downgraded version. So it will ignore newer versions until such a point as you remove the hold. It will also therefore not upgrade a dependency that would break the version you have installed, and prevent packages that depended upon it to upgrade if the upgrade required a newer version.

I am going to give it a try now and let you guys know what happens.


 
  


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
make apt believe there are new packages (apt-cacher-ng as a proxy) zhjim Debian 2 08-28-2013 06:50 AM
apt-get search has been removed??? howto search now? lleb Linux - Newbie 2 03-03-2013 10:36 PM
Gnome Apt, Debian pkg search, synaptic, apt-get each is best for what? streams &dragonflies Ubuntu 1 07-14-2008 02:41 PM
LXer: How To Search For Missing Packages With apt-file On Debian and Ubuntu LXer Syndicated Linux News 0 02-21-2007 07:01 PM
How to 'apt-cache search' & 'apt-file search' by distribution? davidas Debian 3 04-19-2004 01:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:15 PM.

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
Open Source Consulting | Domain Registration