1 |
On Thu, Jan 24, 2019 at 2:04 PM Dale <rdalek1967@×××××.com> wrote: |
2 |
|
3 |
> Neil Bothwick wrote: |
4 |
> > On Thu, 24 Jan 2019 13:42:04 -0600, Dale wrote: |
5 |
> > |
6 |
> >> I'm trying to recall but am not sure, is this the same Alan that used to |
7 |
> >> come on here and post this sort of thing when the problem was in the |
8 |
> >> chair not Gentoo? I recall the person I'm speaking of having a script |
9 |
> >> that just created a mess and then he blamed it on Gentoo. I might still |
10 |
> >> have some of those emails but someone else may recall if this is the |
11 |
> >> same person or not. |
12 |
> > It is. |
13 |
> > |
14 |
> > |
15 |
> |
16 |
> |
17 |
> Yep. I went and found this little gem. For those interested, this is |
18 |
> the script he used back then. I'm not sure if he still does today or |
19 |
> not. Some of you may find it funny. Some may just cry, for various |
20 |
> reasons. ;-) |
21 |
> |
22 |
> Alan Grimes wrote: |
23 |
> > I use two scripts for all emerge use, the goal is to run one command and |
24 |
> > then walk away: |
25 |
> > |
26 |
> > Standard general update script: |
27 |
> > ####################### |
28 |
> > tortoise ~ # cat sysupdate |
29 |
> > |
30 |
> > #they must have moved or removed the logs, might have to track them down |
31 |
> > again... |
32 |
> > #rm /var/log/emerge* |
33 |
> > |
34 |
> > # cache /usr/portage |
35 |
> > echo "caching /usr/portage. This will take a long time." |
36 |
> > time ls -R /usr/portage > /dev/null |
37 |
> > |
38 |
> > emerge --sync |
39 |
> > layman --sync ALL |
40 |
> > |
41 |
> > emerge --update --verbose portage |
42 |
> > emerge --update --newuse --deep --with-bdeps=y system --keep-going |
43 |
> > emerge --update --newuse --deep --with-bdeps=y world --keep-going |
44 |
> > |
45 |
> > rm -f /var/cache/revdep-rebuild/*.rr |
46 |
> > revdep-rebuild |
47 |
> > emerge --skipfirst --resume |
48 |
> > emerge --skipfirst --resume |
49 |
> > etc-update |
50 |
> > eclean-dist |
51 |
> > ######################## |
52 |
> > |
53 |
> > The eclean line was added just a few days ago from this thread... |
54 |
> > |
55 |
> > This one is intended to be a nice gentle update script. |
56 |
> > It caches the portage tree, then syncs everything, then updates |
57 |
> > everything starting with critical system packages, then all world |
58 |
> > packages... |
59 |
> > |
60 |
> > Then it cleans stuff up, it jcakhammers the revdep-rebuild but not too |
61 |
> > hard.... |
62 |
> > |
63 |
> > |
64 |
> > This next script is what I use when emerge starts giving me shit: |
65 |
> > |
66 |
> > ################## |
67 |
> > tortoise ~ # cat keepgoing |
68 |
> > emerge --update --newuse --deep --with-bdeps=y system |
69 |
> > emerge --skipfirst --resume --nodeps |
70 |
> > emerge --skipfirst --resume --nodeps |
71 |
> > emerge --skipfirst --resume --nodeps |
72 |
> > |
73 |
> > emerge --update --newuse --deep --with-bdeps=y world |
74 |
> > emerge --skipfirst --resume --nodeps |
75 |
> > emerge --skipfirst --resume --nodeps |
76 |
> > emerge --skipfirst --resume --nodeps |
77 |
> > emerge --skipfirst --resume --nodeps |
78 |
> > emerge --skipfirst --resume --nodeps |
79 |
> > emerge --skipfirst --resume --nodeps |
80 |
> > emerge --skipfirst --resume --nodeps |
81 |
> > emerge --skipfirst --resume --nodeps |
82 |
> > emerge --skipfirst --resume --nodeps |
83 |
> > emerge --skipfirst --resume --nodeps |
84 |
> > |
85 |
> > rm /var/cache/revdep-rebuild/*.rr |
86 |
> > revdep-rebuild |
87 |
> > emerge --skipfirst --resume --nodeps |
88 |
> > emerge --skipfirst --resume --nodeps |
89 |
> > emerge --skipfirst --resume --nodeps |
90 |
> > emerge --skipfirst --resume --nodeps |
91 |
> > |
92 |
> > etc-update |
93 |
> > ################### |
94 |
> > |
95 |
> > It's basically the same as the working section of the above but instead |
96 |
> > of letting emerge do it's thing, it jackhammers that bitch as hard as |
97 |
> > possible to get as much updated as possible, but it requires emerge to |
98 |
> > do something and not error out for no good reason... I expect prune and |
99 |
> > depclean to be useless but I kinda need update to basically work every |
100 |
> > time. =\ |
101 |
> > Whatever fails on this script, I just live with until next week/month. |
102 |
> > |
103 |
> > ################### |
104 |
> > tortoise ~ # ./pretendupdate |
105 |
> > |
106 |
> > These are the packages that would be merged, in order: |
107 |
> > |
108 |
> > Calculating dependencies / |
109 |
> > |
110 |
> > !!! Problem resolving dependencies for sys-apps/util-linux from @system |
111 |
> > ... done! |
112 |
> > |
113 |
> > !!! The ebuild selected to satisfy "sys-apps/util-linux" has unmet |
114 |
> > requirements. |
115 |
> > - sys-apps/util-linux-2.27.1::gentoo USE="caps cramfs ncurses nls pam |
116 |
> > python readline suid udev unicode -build -fdformat -kill (-selinux) |
117 |
> > -slang -static-libs -systemd -test -tty-helpers" ABI_X86="32 64 -x32" |
118 |
> > PYTHON_SINGLE_TARGET="-python2_7 -python3_3 -python3_4" |
119 |
> > PYTHON_TARGETS="python2_7 python3_4 -python3_3" |
120 |
> > |
121 |
> > The following REQUIRED_USE flag constraints are unsatisfied: |
122 |
> > python? ( exactly-one-of ( python_single_target_python2_7 |
123 |
> > python_single_target_python3_3 python_single_target_python3_4 ) ) |
124 |
> > |
125 |
> > The above constraints are a subset of the following complete |
126 |
> expression: |
127 |
> > python? ( exactly-one-of ( python_single_target_python2_7 |
128 |
> > python_single_target_python3_3 python_single_target_python3_4 ) |
129 |
> > python_single_target_python2_7? ( python_targets_python2_7 ) |
130 |
> > python_single_target_python3_3? ( python_targets_python3_3 ) |
131 |
> > python_single_target_python3_4? ( python_targets_python3_4 ) ) |
132 |
> > |
133 |
> > (dependency required by "@system" [set]) |
134 |
> > (dependency required by "@world" [argument]) |
135 |
> > |
136 |
> > tortoise ~ # cat ./pretendupdate |
137 |
> > emerge --update --newuse --deep --with-bdeps=y world --verbose --pretend |
138 |
> > tortoise ~ # |
139 |
> > |
140 |
> > ########### |
141 |
> > |
142 |
> > Google is not being helpful with this... =( |
143 |
> > |
144 |
> |
145 |
> |
146 |
> I have to say, the first sentence says a LOT. Who here runs emerge |
147 |
> without checking to make sure it is going to do what you want it to |
148 |
> first? Heck, I always run with -a and look at USE flags and such before |
149 |
> even thinking about hitting y to continue. Sometimes, it may take me |
150 |
> adjusting settings two or three times to get what I need. It goes |
151 |
> downhill from there with his script. Heck, if I were emerge, I'd break |
152 |
> too. lol |
153 |
> |
154 |
> Dale |
155 |
> |
156 |
> :-) :-) |
157 |
> |
158 |
|
159 |
|
160 |
|
161 |
A lot of people run emerge without checking the preliminary console output. |
162 |
|
163 |
I don't think it's fair to imply that doing that is somehow wrong. |
164 |
|
165 |
The vast majority of Linux distributions support unattended upgrades |
166 |
without a second thought. |