-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzyp_hist.html
100 lines (86 loc) · 2.75 KB
/
zyp_hist.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<title></title>
<script src="common.js"></script>
<script src="zyp_hist.js"></script>
<style>
table {
}
th {
font-weight: bold;
}
td {
vertical-align: top;
}
td div {
max-height: 60vh;
overflow-y: auto;
}
td, th {
border: 1px solid #b0b0b0;
}
th {
color: #666666;
font-weight: normal;
}
summary {
color: #404b9a;
}
.span_p {
display: inline-block;
word-break: keep-all;
}
.span_p::first-letter {
font-weight: bold;
}
.td_install .p_removed {
color: gray;
}
.td_remove {
color: #30008f;
}
.td_remove .p_removed {
color: #d65252;
}
.col_manu {
background-color: #e7ffe6;
}
.col_unsure {
background-color: #e6eeff;
}
.col_remove {
background-color: #ffefef;
}
</style>
</head>
<body>
<h1>zypper history viewer</h1>
<p>Show Linux (openSUSE...) user a report, listing software packages installed (by zypper) in system, grouped by</p>
<ol>
<li>The time you installed/removed them</li>
<li>Installed packages, and how they got installed:<ul>
<li>User choosed</li>
<li>Auto selected</li>
<li>Other ( when install packages via YaST it doesn't record which packages are auto selected)</li>
</ul>
</li>
<li>Removed packages</li>
</ol>
<p>Usage:</p>
<ol>
<li><code>sudo cp /var/log/zypp/history /tmp</code></li>
<li>Load file <code>history</code> into web</li>
</ol>
<input type="file" id="myFile">
<button onclick="myFunction()">Read, parse and show</button>
<div>
<code id="fileContent" style="white-space: pre-wrap;"></code>
</div>
<hr>
<br>
<div id="div_tables_cont">
</div>
</body>
</html>