Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge should have a time parameter
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
Irre
Apprentice
Apprentice


Joined: 09 Nov 2013
Posts: 265
Location: Stockholm

PostPosted: Mon Aug 14, 2017 7:28 am    Post subject: emerge should have a time parameter Reply with quote

emerge should have a time parameter and portage should contain time information. I keep 8 generations of portage on a server so it is possible to roll back up to one week of updates. But there must be a better solution:

Example: emerge -Dvu --date 20170810 @world

to use portage from that date!
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2425

PostPosted: Mon Aug 14, 2017 8:15 am    Post subject: Reply with quote

Did you try with git? You could always checkout based on any older commit, e.g.:
Code:
git clone https://github.com/gentoo/gentoo.git 61b861ac
Or, in case you already have the git tree, create a branch based on the older commit:
Code:
git branch -av
git checkout -b foobar 61b861ac
Back to top
View user's profile Send private message
Irre
Apprentice
Apprentice


Joined: 09 Nov 2013
Posts: 265
Location: Stockholm

PostPosted: Mon Aug 14, 2017 8:25 am    Post subject: Reply with quote

Thank you. I test git and see how it works..
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2425

PostPosted: Mon Aug 14, 2017 9:03 am    Post subject: Reply with quote

For further reaading: https://stackoverflow.com/questions/6990484/git-checkout-by-date
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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