View previous topic :: View next topic |
Author |
Message |
drt n00b
Joined: 29 Apr 2017 Posts: 33
|
Posted: Mon Aug 30, 2021 11:44 am Post subject: Get previous init script after package update? |
|
|
Dear folks,
a package update replaced the init file in /etc/init.d/myservice and now I am stuck.
1) Is it possible to get to the previous initscript, which was overwritten by the update?
2) Is it possible to downgrade a package, when no older version is listed in the portage tree anymore?
Thank you! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54577 Location: 56N 3W
|
Posted: Mon Aug 30, 2021 12:05 pm Post subject: |
|
|
drt,
Yes to all of those.
Quote: | 1) Is it possible to get to the previous initscript, which was overwritten by the update? |
The old sources will still be in $DISTFILES unless you have cleaned them.
If you don't have them they will be on the web or someone here will have them. e.g. I have all my distfiles back to mid 2006.
Quote: | 2) Is it possible to downgrade a package, when no older version is listed in the portage tree anymore? |
Keep the old ebuild in your own overlay.
If the ebuild has been removed for the current portage tree, you can git it from git. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
drt n00b
Joined: 29 Apr 2017 Posts: 33
|
Posted: Mon Aug 30, 2021 12:29 pm Post subject: |
|
|
Thanks for quick reply.
Yes, the previous package is there in $DISTFILES (as .deb package)
How can I downgrade to this old version? Is there a way to install it directly from there using portage?
Thanks |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54577 Location: 56N 3W
|
Posted: Mon Aug 30, 2021 12:46 pm Post subject: |
|
|
drt,
Put the old ebuild into your overlay and mask the newer one. in your /etc/portage/package.mask, which you may need to create.
If you just want the init script, app-arch/deb2targz will convert the deb to a targz which tar can unpack for you.
Do not do that as root. Put the deb in its own directory under ~/ and work there. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
drt n00b
Joined: 29 Apr 2017 Posts: 33
|
Posted: Mon Aug 30, 2021 2:28 pm Post subject: |
|
|
Great, thank you! |
|
Back to top |
|
|
Juippisi Developer
Joined: 30 Sep 2005 Posts: 750 Location: /home
|
|
Back to top |
|
|
|