Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Get previous init script after package update?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
drt
n00b
n00b


Joined: 29 Apr 2017
Posts: 33

PostPosted: Mon Aug 30, 2021 11:44 am    Post subject: Get previous init script after package update? Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Mon Aug 30, 2021 12:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
drt
n00b
n00b


Joined: 29 Apr 2017
Posts: 33

PostPosted: Mon Aug 30, 2021 12:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Mon Aug 30, 2021 12:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
drt
n00b
n00b


Joined: 29 Apr 2017
Posts: 33

PostPosted: Mon Aug 30, 2021 2:28 pm    Post subject: Reply with quote

Great, thank you!
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 727
Location: /home

PostPosted: Tue Aug 31, 2021 1:38 am    Post subject: Reply with quote

Some init.d scripts are hosted in Gentoo's main repository, if you need the older versions of those, you can utilize git checkout or browse the history through web interface.

e.g. https://sources.gentoo.org/repo/gentoo.git/log/app-emulation/lxd/files
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum