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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
|
# file : bpkg/system-package-manager-debian.test.testscript
# license : MIT; see accompanying LICENSE file
: apt-cache-policy
:
{
test.arguments += apt-cache-policy
: basics
:
$* libssl3 libssl1.1 libssl-dev libsqlite5 libxerces-c-dev <<EOI 2>>EOE >>EOO
libssl3:
Installed: 3.0.7-1
Candidate: 3.0.7-2
Version table:
3.0.7-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
*** 3.0.7-1 100
100 /var/lib/dpkg/status
libssl1.1:
Installed: 1.1.1n-0+deb11u3
Candidate: 1.1.1n-0+deb11u3
Version table:
*** 1.1.1n-0+deb11u3 100
100 /var/lib/dpkg/status
libssl-dev:
Installed: 3.0.7-1
Candidate: 3.0.7-2
Version table:
3.0.7-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
*** 3.0.7-1 100
100 /var/lib/dpkg/status
libxerces-c-dev:
Installed: (none)
Candidate: 3.2.4+debian-1
Version table:
3.2.4+debian-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
LC_ALL=C apt-cache policy --quiet libssl3 libssl1.1 libssl-dev libsqlite5 libxerces-c-dev <-
EOE
libssl3 '3.0.7-1' '3.0.7-2'
libssl1.1 '1.1.1n-0+deb11u3' '1.1.1n-0+deb11u3'
libssl-dev '3.0.7-1' '3.0.7-2'
libsqlite5 '' ''
libxerces-c-dev '' '3.2.4+debian-1'
EOO
: empty
:
$* libsqlite5 <:'' 2>>EOE >>EOO
LC_ALL=C apt-cache policy --quiet libsqlite5 <-
EOE
libsqlite5 '' ''
EOO
: none-none
:
$* pulseaudio <<EOI 2>>EOE >>EOO
pulseaudio:
Installed: (none)
Candidate: (none)
Version table:
1:11.1-1ubuntu7.5 -1
500 http://au.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
1:11.1-1ubuntu7 -1
500 http://au.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
EOI
LC_ALL=C apt-cache policy --quiet pulseaudio <-
EOE
pulseaudio '' ''
EOO
}
: apt-cache-show
:
{
test.arguments += apt-cache-show
# Note: put Depends last to test folded/multiline parsing.
#
: basics
:
$* libssl1.1 1.1.1n-0+deb11u3 <<EOI 2>>EOE >>EOO
Package: libssl1.1
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 4120
Maintainer: Debian OpenSSL Team <pkg-openssl-devel@lists.alioth.debian.org>
Architecture: amd64
Multi-Arch: same
Source: openssl
Version: 1.1.1n-0+deb11u3
Breaks: isync (<< 1.3.0-2), lighttpd (<< 1.4.49-2), python-boto (<< 2.44.0-1.1), python-httplib2 (<< 0.11.3-1), python-imaplib2 (<< 2.57-5), python3-boto (<< 2.44.0-1.1), python3-imaplib2 (<< 2.57-5)
Description: Secure Sockets Layer toolkit - shared libraries
This package is part of the OpenSSL project's implementation of the SSL
and TLS cryptographic protocols for secure communication over the
Internet.
.
It provides the libssl and libcrypto shared libraries.
Description-md5: 88547c6206c7fbc4fcc7d09ce100d210
Homepage: https://www.openssl.org/
Depends: libc6 (>= 2.25), debconf (>= 0.5) | debconf-2.0
EOI
LC_ALL=C apt-cache show --quiet libssl1.1=1.1.1n-0+deb11u3 <-
EOE
libc6 (>= 2.25), debconf (>= 0.5) | debconf-2.0
EOO
: no-depends
:
$* libssl1.1 1.1.1n-0+deb11u3 <<EOI 2>>EOE >''
Package: libssl1.1
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 4120
Maintainer: Debian OpenSSL Team <pkg-openssl-devel@lists.alioth.debian.org>
Architecture: amd64
Multi-Arch: same
Source: openssl
Version: 1.1.1n-0+deb11u3
Breaks: isync (<< 1.3.0-2), lighttpd (<< 1.4.49-2), python-boto (<< 2.44.0-1.1), python-httplib2 (<< 0.11.3-1), python-imaplib2 (<< 2.57-5), python3-boto (<< 2.44.0-1.1), python3-imaplib2 (<< 2.57-5)
Description: Secure Sockets Layer toolkit - shared libraries
This package is part of the OpenSSL project's implementation of the SSL
and TLS cryptographic protocols for secure communication over the
Internet.
.
It provides the libssl and libcrypto shared libraries.
Description-md5: 88547c6206c7fbc4fcc7d09ce100d210
Homepage: https://www.openssl.org/
EOI
LC_ALL=C apt-cache show --quiet libssl1.1=1.1.1n-0+deb11u3 <-
EOE
}
: parse-name-value
:
{
test.arguments += parse-name-value
: basics
:
$* libssl <<EOI >>EOO
libssl3 libssl-common libssl-doc libssl-dev libssl-dbg libssl-extras, libc6 libc-dev libc-common libc-doc, libz-dev
EOI
main: libssl3
dev: libssl-dev
doc: libssl-doc
dbg: libssl-dbg
common: libssl-common
extras: libssl-extras libc6 libc-dev libz-dev
EOO
: non-lib
:
$* sqlite3 <<EOI >>EOO
sqlite3 sqlite3-common sqlite3-doc
EOI
main: sqlite3
doc: sqlite3-doc
common: sqlite3-common
EOO
: lib-dev
:
$* libssl <<EOI >>EOO
libssl-dev
EOI
dev: libssl-dev
EOO
: non-lib-dev
:
$* ssl-dev <<EOI >>EOO
ssl-dev
EOI
main: ssl-dev
EOO
: lib-custom-dev
:
$* libfoo-dev <<EOI >>EOO
libfoo-dev libfoo-dev-dev
EOI
main: libfoo-dev
dev: libfoo-dev-dev
EOO
}
: main-from-dev
:
{
test.arguments += main-from-dev
: first
:
$* libssl-dev 3.0.7-1 <<EOI >'libssl3'
libssl3 (= 3.0.7-1), debconf (>= 0.5) | debconf-2.0
EOI
: not-first
:
$* libxerces-c-dev 3.2.4+debian-1 <<EOI >'libxerces-c3.2'
libc6-dev | libc-dev, libicu-dev, libxerces-c3.2 (= 3.2.4+debian-1)
EOI
: exact
:
$* libexpat1-dev 2.5.0-1 <<EOI >'libexpat1'
libexpat1 (= 2.5.0-1), libc6-dev | libc-dev
EOI
: not-stem
:
$* libcurl4-openssl-dev 7.87.0-2 <<EOI >''
libcurl4 (= 7.87.0-2)
EOI
}
: build
:
{
test.arguments += build
: libsqlite3
:
{
: installed
:
cat <<EOI >=libsqlite3-dev.policy;
libsqlite3-dev:
Installed: 3.40.1-1
Candidate: 3.40.1-1
Version table:
*** 3.40.1-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
100 /var/lib/dpkg/status
EOI
cat <<EOI >=libsqlite3-dev.show;
Package: libsqlite3-dev
Version: 3.40.1-1
Depends: libsqlite3-0 (= 3.40.1-1), libc-dev
EOI
cat <<EOI >=libsqlite3-0.policy;
libsqlite3-0:
Installed: 3.40.1-1
Candidate: 3.40.1-1
Version table:
*** 3.40.1-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
100 /var/lib/dpkg/status
EOI
$* libsqlite3 --install libsqlite3 <<EOI 2>>EOE >>EOO
apt-cache-policy: libsqlite3-dev libsqlite3-dev.policy
apt-cache-show: libsqlite3-dev 3.40.1-1 libsqlite3-dev.show
apt-cache-policy: libsqlite3-0 libsqlite3-0.policy
EOI
LC_ALL=C apt-cache policy --quiet libsqlite3-dev <libsqlite3-dev.policy
LC_ALL=C apt-cache show --quiet libsqlite3-dev=3.40.1-1 <libsqlite3-dev.show
LC_ALL=C apt-cache policy --quiet libsqlite3-0 <libsqlite3-0.policy
sudo apt-get install --quiet --assume-no libsqlite3-0=3.40.1-1 libsqlite3-dev=3.40.1-1
LC_ALL=C apt-cache policy --quiet libsqlite3-0 <libsqlite3-0.policy
EOE
libsqlite3 3.40.1 (libsqlite3-0 3.40.1-1) installed
EOO
: part-installed
:
cat <<EOI >=libsqlite3-dev.policy;
libsqlite3-dev:
Installed: (none)
Candidate: 3.40.1-1
Version table:
3.40.1-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
cat <<EOI >=libsqlite3-dev.show;
Package: libsqlite3-dev
Version: 3.40.1-1
Depends: libsqlite3-0 (= 3.40.1-1), libc-dev
EOI
cat <<EOI >=libsqlite3-0.policy;
libsqlite3-0:
Installed: 3.40.1-1
Candidate: 3.40.1-1
Version table:
*** 3.40.1-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
100 /var/lib/dpkg/status
EOI
$* libsqlite3 --install libsqlite3 <<EOI 2>>EOE >>EOO
apt-cache-policy: libsqlite3-dev libsqlite3-dev.policy
apt-cache-show: libsqlite3-dev 3.40.1-1 libsqlite3-dev.show
apt-cache-policy: libsqlite3-0 libsqlite3-0.policy
EOI
LC_ALL=C apt-cache policy --quiet libsqlite3-dev <libsqlite3-dev.policy
sudo apt-get update --quiet --assume-no
LC_ALL=C apt-cache policy --quiet libsqlite3-dev <libsqlite3-dev.policy
LC_ALL=C apt-cache show --quiet libsqlite3-dev=3.40.1-1 <libsqlite3-dev.show
LC_ALL=C apt-cache policy --quiet libsqlite3-0 <libsqlite3-0.policy
sudo apt-get install --quiet --assume-no libsqlite3-0 libsqlite3-dev
LC_ALL=C apt-cache policy --quiet libsqlite3-0 <libsqlite3-0.policy
EOE
libsqlite3 3.40.1 (libsqlite3-0 3.40.1-1) part installed
EOO
: part-installed-upgrade
:
cat <<EOI >=libsqlite3-dev.policy;
libsqlite3-dev:
Installed: (none)
Candidate: 3.39.4-1
Version table:
3.39.4-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
cat <<EOI >=libsqlite3-dev.policy-fetched;
libsqlite3-dev:
Installed: (none)
Candidate: 3.40.1-1
Version table:
3.40.1-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
cat <<EOI >=libsqlite3-dev.show-fetched;
Package: libsqlite3-dev
Version: 3.40.1-1
Depends: libsqlite3-0 (= 3.40.1-1), libc-dev
EOI
cat <<EOI >=libsqlite3-0.policy-fetched;
libsqlite3-0:
Installed: 3.39.4-1
Candidate: 3.40.1-1
Version table:
3.40.1-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
*** 3.39.4-1 100
100 /var/lib/dpkg/status
EOI
cat <<EOI >=libsqlite3-0.policy-installed;
libsqlite3-0:
Installed: 3.40.1-1
Candidate: 3.40.1-1
Version table:
*** 3.40.1-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
100 /var/lib/dpkg/status
EOI
$* libsqlite3 --install libsqlite3 <<EOI 2>>EOE >>EOO
apt-cache-policy: libsqlite3-dev libsqlite3-dev.policy
apt-cache-policy-fetched: libsqlite3-dev libsqlite3-dev.policy-fetched
apt-cache-show: libsqlite3-dev 3.40.1-1 libsqlite3-dev.show-fetched
apt-cache-policy-fetched: libsqlite3-0 libsqlite3-0.policy-fetched
apt-cache-policy-installed: libsqlite3-0 libsqlite3-0.policy-installed
EOI
LC_ALL=C apt-cache policy --quiet libsqlite3-dev <libsqlite3-dev.policy
sudo apt-get update --quiet --assume-no
LC_ALL=C apt-cache policy --quiet libsqlite3-dev <libsqlite3-dev.policy-fetched
LC_ALL=C apt-cache show --quiet libsqlite3-dev=3.40.1-1 <libsqlite3-dev.show-fetched
LC_ALL=C apt-cache policy --quiet libsqlite3-0 <libsqlite3-0.policy-fetched
sudo apt-get install --quiet --assume-no libsqlite3-0 libsqlite3-dev
LC_ALL=C apt-cache policy --quiet libsqlite3-0 <libsqlite3-0.policy-installed
EOE
libsqlite3 3.40.1 (libsqlite3-0 3.40.1-1) part installed
EOO
# Note that the semantics is unrealistic (maybe background apt-get update
# happenned in between).
#
: part-installed-upgrade-version-change
:
cat <<EOI >=libsqlite3-dev.policy;
libsqlite3-dev:
Installed: (none)
Candidate: 3.39.4-1
Version table:
3.39.4-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
cat <<EOI >=libsqlite3-dev.show;
Package: libsqlite3-dev
Version: 3.39.4-1
Depends: libsqlite3-0 (= 3.39.4-1), libc-dev
EOI
cat <<EOI >=libsqlite3-0.policy;
libsqlite3-0:
Installed: 3.39.4-1
Candidate: 3.39.4-1
Version table:
*** 3.39.4-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
100 /var/lib/dpkg/status
EOI
cat <<EOI >=libsqlite3-0.policy-installed;
libsqlite3-0:
Installed: 3.40.1-1
Candidate: 3.40.1-1
Version table:
*** 3.40.1-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
100 /var/lib/dpkg/status
EOI
$* libsqlite3 --install --no-fetch libsqlite3 <<EOI 2>>EOE >>EOO != 0
apt-cache-policy: libsqlite3-dev libsqlite3-dev.policy
apt-cache-show: libsqlite3-dev 3.39.4-1 libsqlite3-dev.show
apt-cache-policy: libsqlite3-0 libsqlite3-0.policy
apt-cache-policy-installed: libsqlite3-0 libsqlite3-0.policy-installed
EOI
LC_ALL=C apt-cache policy --quiet libsqlite3-dev <libsqlite3-dev.policy
LC_ALL=C apt-cache show --quiet libsqlite3-dev=3.39.4-1 <libsqlite3-dev.show
LC_ALL=C apt-cache policy --quiet libsqlite3-0 <libsqlite3-0.policy
sudo apt-get install --quiet --assume-no libsqlite3-0 libsqlite3-dev
LC_ALL=C apt-cache policy --quiet libsqlite3-0 <libsqlite3-0.policy-installed
error: unexpected debian package version for libsqlite3-0
info: expected: 3.39.4-1
info: installed: 3.40.1-1
info: consider retrying the bpkg command
EOE
libsqlite3 3.39.4 (libsqlite3-0 3.39.4-1) part installed
EOO
: not-installed
:
cat <<EOI >=libsqlite3-dev.policy;
libsqlite3-dev:
Installed: (none)
Candidate: 3.40.1-1
Version table:
3.40.1-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
cat <<EOI >=libsqlite3-dev.show;
Package: libsqlite3-dev
Version: 3.40.1-1
Depends: libsqlite3-0 (= 3.40.1-1), libc-dev
EOI
cat <<EOI >=libsqlite3-0.policy;
libsqlite3-0:
Installed: (none)
Candidate: 3.40.1-1
Version table:
3.40.1-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
cat <<EOI >=libsqlite3-0.policy-installed;
libsqlite3-0:
Installed: 3.40.1-1
Candidate: 3.40.1-1
Version table:
*** 3.40.1-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
100 /var/lib/dpkg/status
EOI
$* libsqlite3 --install libsqlite3 <<EOI 2>>EOE >>EOO
apt-cache-policy: libsqlite3-dev libsqlite3-dev.policy
apt-cache-show: libsqlite3-dev 3.40.1-1 libsqlite3-dev.show
apt-cache-policy: libsqlite3-0 libsqlite3-0.policy
apt-cache-policy-installed: libsqlite3-0 libsqlite3-0.policy-installed
EOI
LC_ALL=C apt-cache policy --quiet libsqlite3-dev <libsqlite3-dev.policy
sudo apt-get update --quiet --assume-no
LC_ALL=C apt-cache policy --quiet libsqlite3-dev <libsqlite3-dev.policy
LC_ALL=C apt-cache show --quiet libsqlite3-dev=3.40.1-1 <libsqlite3-dev.show
LC_ALL=C apt-cache policy --quiet libsqlite3-0 <libsqlite3-0.policy
sudo apt-get install --quiet --assume-no libsqlite3-0 libsqlite3-dev
LC_ALL=C apt-cache policy --quiet libsqlite3-0 <libsqlite3-0.policy-installed
EOE
libsqlite3 3.40.1 (libsqlite3-0 3.40.1-1) not installed
EOO
: no-install
:
cat <<EOI >=libsqlite3-dev.policy;
libsqlite3-dev:
Installed: (none)
Candidate: 3.40.1-1
Version table:
3.40.1-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
$* libsqlite3 <<EOI 2>>EOE != 0
apt-cache-policy: libsqlite3-dev libsqlite3-dev.policy
EOI
LC_ALL=C apt-cache policy --quiet libsqlite3-dev <libsqlite3-dev.policy
error: no installed system package for libsqlite3
EOE
: not-available
:
$* libsqlite3 --install libsqlite3 <<EOI 2>>EOE != 0
apt-cache-policy: libsqlite3-dev !
EOI
LC_ALL=C apt-cache policy --quiet libsqlite3-dev </dev/null
sudo apt-get update --quiet --assume-no
LC_ALL=C apt-cache policy --quiet libsqlite3-dev </dev/null
error: no installed or available system package for libsqlite3
EOE
: not-available-no-fetch
:
$* libsqlite3 --install --no-fetch libsqlite3 <<EOI 2>>EOE != 0
apt-cache-policy: libsqlite3-dev !
EOI
LC_ALL=C apt-cache policy --quiet libsqlite3-dev </dev/null
error: no installed or available system package for libsqlite3
EOE
}
: sqlite3
:
{
: installed
:
cat <<EOI >=sqlite3.policy;
sqlite3:
Installed: 3.40.1-1
Candidate: 3.40.1-1
Version table:
*** 3.40.1-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
100 /var/lib/dpkg/status
EOI
$* sqlite3 --install sqlite3 <<EOI 2>>EOE >>EOO
apt-cache-policy: sqlite3 sqlite3.policy
EOI
LC_ALL=C apt-cache policy --quiet sqlite3 <sqlite3.policy
sudo apt-get install --quiet --assume-no sqlite3=3.40.1-1
LC_ALL=C apt-cache policy --quiet sqlite3 <sqlite3.policy
EOE
sqlite3 3.40.1 (sqlite3 3.40.1-1) installed
EOO
: not-installed
:
cat <<EOI >=sqlite3.policy;
sqlite3:
Installed: (none)
Candidate: 3.39.4-1
Version table:
3.39.4-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
cat <<EOI >=sqlite3.policy-fetched;
sqlite3:
Installed: (none)
Candidate: 3.40.1-1
Version table:
3.40.1-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
cat <<EOI >=sqlite3.policy-installed;
sqlite3:
Installed: 3.40.1-1
Candidate: 3.40.1-1
Version table:
*** 3.40.1-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
100 /var/lib/dpkg/status
EOI
$* sqlite3 --install sqlite3 <<EOI 2>>EOE >>EOO
apt-cache-policy: sqlite3 sqlite3.policy
apt-cache-policy-fetched: sqlite3 sqlite3.policy-fetched
apt-cache-policy-installed: sqlite3 sqlite3.policy-installed
EOI
LC_ALL=C apt-cache policy --quiet sqlite3 <sqlite3.policy
sudo apt-get update --quiet --assume-no
LC_ALL=C apt-cache policy --quiet sqlite3 <sqlite3.policy-fetched
sudo apt-get install --quiet --assume-no sqlite3
LC_ALL=C apt-cache policy --quiet sqlite3 <sqlite3.policy-installed
EOE
sqlite3 3.40.1 (sqlite3 3.40.1-1) not installed
EOO
}
: libssl
:
{
+cat <<EOI >=libcrypto.manifest
: 1
name: libcrypto
version: 1.1.1+18
upstream-version: 1.1.1n
debian-name: libssl1.1 libssl-dev
debian-to-downstream-version: /1\.1\.1[a-z]/1.1.1/
summary: OpenSSL libcrypto
license: OpenSSL
EOI
+cat <<EOI >=libssl.manifest
: 1
name: libssl
version: 1.1.1+18
upstream-version: 1.1.1n
debian-name: libssl1.1 libssl-dev
debian-to-downstream-version: /1\.1\.1[a-z]/1.1.1/
summary: OpenSSL libssl
license: OpenSSL
EOI
: installed
:
ln -s ../libcrypto.manifest ./;
ln -s ../libssl.manifest ./;
cat <<EOI >=libssl1.1+libssl-dev.policy;
libssl1.1:
Installed: 1.1.1n-0+deb11u3
Candidate: 1.1.1n-0+deb11u3
Version table:
*** 1.1.1n-0+deb11u3 100
100 /var/lib/dpkg/status
libssl-dev:
Installed: 1.1.1n-0+deb11u3
Candidate: 1.1.1n-0+deb11u3
Version table:
*** 1.1.1n-0+deb11u3 100
100 /var/lib/dpkg/status
EOI
cat <<EOI >=libssl1.1.policy-installed;
libssl1.1:
Installed: 1.1.1n-0+deb11u3
Candidate: 1.1.1n-0+deb11u3
Version table:
*** 1.1.1n-0+deb11u3 100
100 /var/lib/dpkg/status
EOI
$* libcrypto libssl --install libcrypto libssl <<EOI 2>>EOE >>EOO
manifest: libcrypto libcrypto.manifest
manifest: libssl libssl.manifest
apt-cache-policy: libssl1.1 libssl-dev libssl1.1+libssl-dev.policy
apt-cache-policy-installed: libssl1.1 libssl1.1.policy-installed
EOI
LC_ALL=C apt-cache policy --quiet libssl1.1 libssl-dev <libssl1.1+libssl-dev.policy
LC_ALL=C apt-cache policy --quiet libssl1.1 libssl-dev <libssl1.1+libssl-dev.policy
sudo apt-get install --quiet --assume-no libssl1.1=1.1.1n-0+deb11u3 libssl-dev=1.1.1n-0+deb11u3
LC_ALL=C apt-cache policy --quiet libssl1.1 <libssl1.1.policy-installed
EOE
libcrypto 1.1.1 (libssl1.1 1.1.1n-0+deb11u3) installed
libssl 1.1.1 (libssl1.1 1.1.1n-0+deb11u3) installed
EOO
: part-installed
:
ln -s ../libcrypto.manifest ./;
ln -s ../libssl.manifest ./;
cat <<EOI >=libssl1.1+libssl-dev.policy;
libssl1.1:
Installed: 1.1.1n-0+deb11u3
Candidate: 1.1.1n-0+deb11u3
Version table:
*** 1.1.1n-0+deb11u3 100
100 /var/lib/dpkg/status
libssl-dev:
Installed: (none)
Candidate: 1.1.1n-0+deb11u3
Version table:
1.1.1n-0+deb11u3 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
cat <<EOI >=libssl1.1.policy-installed;
libssl1.1:
Installed: 1.1.1n-0+deb11u3
Candidate: 1.1.1n-0+deb11u3
Version table:
*** 1.1.1n-0+deb11u3 100
100 /var/lib/dpkg/status
EOI
$* libcrypto libssl --install libcrypto libssl <<EOI 2>>EOE >>EOO
manifest: libcrypto libcrypto.manifest
manifest: libssl libssl.manifest
apt-cache-policy: libssl1.1 libssl-dev libssl1.1+libssl-dev.policy
apt-cache-policy-installed: libssl1.1 libssl1.1.policy-installed
EOI
LC_ALL=C apt-cache policy --quiet libssl1.1 libssl-dev <libssl1.1+libssl-dev.policy
sudo apt-get update --quiet --assume-no
LC_ALL=C apt-cache policy --quiet libssl1.1 libssl-dev <libssl1.1+libssl-dev.policy
LC_ALL=C apt-cache policy --quiet libssl1.1 libssl-dev <libssl1.1+libssl-dev.policy
sudo apt-get install --quiet --assume-no libssl1.1 libssl-dev
LC_ALL=C apt-cache policy --quiet libssl1.1 <libssl1.1.policy-installed
EOE
libcrypto 1.1.1 (libssl1.1 1.1.1n-0+deb11u3) part installed
libssl 1.1.1 (libssl1.1 1.1.1n-0+deb11u3) part installed
EOO
: not-installed
:
ln -s ../libcrypto.manifest ./;
ln -s ../libssl.manifest ./;
cat <<EOI >=libssl1.1+libssl-dev.policy;
libssl1.1:
Installed: (none)
Candidate: 1.1.1n-0+deb11u3
Version table:
*** 1.1.1n-0+deb11u3 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
libssl-dev:
Installed: (none)
Candidate: 1.1.1n-0+deb11u3
Version table:
1.1.1n-0+deb11u3 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
cat <<EOI >=libssl1.1.policy-installed;
libssl1.1:
Installed: 1.1.1n-0+deb11u3
Candidate: 1.1.1n-0+deb11u3
Version table:
*** 1.1.1n-0+deb11u3 100
100 /var/lib/dpkg/status
EOI
$* libcrypto libssl --install libcrypto libssl <<EOI 2>>EOE >>EOO
manifest: libcrypto libcrypto.manifest
manifest: libssl libssl.manifest
apt-cache-policy: libssl1.1 libssl-dev libssl1.1+libssl-dev.policy
apt-cache-policy-installed: libssl1.1 libssl1.1.policy-installed
EOI
LC_ALL=C apt-cache policy --quiet libssl1.1 libssl-dev <libssl1.1+libssl-dev.policy
sudo apt-get update --quiet --assume-no
LC_ALL=C apt-cache policy --quiet libssl1.1 libssl-dev <libssl1.1+libssl-dev.policy
LC_ALL=C apt-cache policy --quiet libssl1.1 libssl-dev <libssl1.1+libssl-dev.policy
sudo apt-get install --quiet --assume-no libssl1.1 libssl-dev
LC_ALL=C apt-cache policy --quiet libssl1.1 <libssl1.1.policy-installed
EOE
libcrypto 1.1.1 (libssl1.1 1.1.1n-0+deb11u3) not installed
libssl 1.1.1 (libssl1.1 1.1.1n-0+deb11u3) not installed
EOO
}
: libcurl
:
{
# Note that libcurl3-gnutls libcurl4-gnutls-dev is not a mistake.
#
# Note also that there is a third flavor, libcurl3-nss libcurl4-nss-dev,
# but we omit it to keep the tests manageable.
#
#
+cat <<EOI >=libcurl.manifest
: 1
name: libcurl
version: 7.84.0
debian-name: libcurl4 libcurl4-openssl-dev libcurl4-doc
debian-name: libcurl3-gnutls libcurl4-gnutls-dev libcurl4-doc
summary: C library for transferring data with URLs
license: curl
EOI
: one-full-installed
:
ln -s ../libcurl.manifest ./;
cat <<EOI >=libcurl4+libcurl4-openssl-dev.policy;
libcurl4:
Installed: 7.85.0-1
Candidate: 7.87.0-2
Version table:
7.87.0-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
*** 7.85.0-1 100
100 /var/lib/dpkg/status
libcurl4-openssl-dev:
Installed: 7.85.0-1
Candidate: 7.87.0-2
Version table:
7.87.0-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
*** 7.85.0-1 100
100 /var/lib/dpkg/status
EOI
cat <<EOI >=libcurl3-gnutls+libcurl4-gnutls-dev.policy;
libcurl3-gnutls:
Installed: 7.85.0-1
Candidate: 7.87.0-2
Version table:
7.87.0-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
*** 7.85.0-1 100
100 /var/lib/dpkg/status
libcurl4-gnutls-dev:
Installed: (none)
Candidate: 7.87.0-2
Version table:
7.87.0-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
cat <<EOI >=libcurl4.policy-installed;
libcurl4:
Installed: 7.85.0-1
Candidate: 7.87.0-2
Version table:
7.87.0-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
*** 7.85.0-1 100
100 /var/lib/dpkg/status
EOI
$* libcurl --install libcurl <<EOI 2>>EOE >>EOO
manifest: libcurl libcurl.manifest
apt-cache-policy: libcurl4 libcurl4-openssl-dev libcurl4+libcurl4-openssl-dev.policy
apt-cache-policy: libcurl3-gnutls libcurl4-gnutls-dev libcurl3-gnutls+libcurl4-gnutls-dev.policy
apt-cache-policy-installed: libcurl4 libcurl4.policy-installed
EOI
LC_ALL=C apt-cache policy --quiet libcurl4 libcurl4-openssl-dev <libcurl4+libcurl4-openssl-dev.policy
LC_ALL=C apt-cache policy --quiet libcurl3-gnutls libcurl4-gnutls-dev <libcurl3-gnutls+libcurl4-gnutls-dev.policy
sudo apt-get install --quiet --assume-no libcurl4=7.85.0-1 libcurl4-openssl-dev=7.85.0-1
LC_ALL=C apt-cache policy --quiet libcurl4 <libcurl4.policy-installed
EOE
libcurl 7.85.0 (libcurl4 7.85.0-1) installed
EOO
: one-part-installed
:
ln -s ../libcurl.manifest ./;
cat <<EOI >=libcurl4+libcurl4-openssl-dev.policy;
libcurl4:
Installed: 7.85.0-1
Candidate: 7.87.0-2
Version table:
7.87.0-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
*** 7.85.0-1 100
100 /var/lib/dpkg/status
libcurl4-openssl-dev:
Installed: (none)
Candidate: 7.87.0-2
Version table:
7.87.0-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
cat <<EOI >=libcurl3-gnutls+libcurl4-gnutls-dev.policy;
libcurl3-gnutls:
Installed: (none)
Candidate: 7.87.0-2
Version table:
7.87.0-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
libcurl4-gnutls-dev:
Installed: (none)
Candidate: 7.87.0-2
Version table:
7.87.0-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
cat <<EOI >=libcurl4.policy-installed;
libcurl4:
Installed: 7.87.0-2
Candidate: 7.87.0-2
Version table:
*** 7.87.0-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
100 /var/lib/dpkg/status
EOI
$* libcurl --install libcurl <<EOI 2>>EOE >>EOO
manifest: libcurl libcurl.manifest
apt-cache-policy: libcurl4 libcurl4-openssl-dev libcurl4+libcurl4-openssl-dev.policy
apt-cache-policy: libcurl3-gnutls libcurl4-gnutls-dev libcurl3-gnutls+libcurl4-gnutls-dev.policy
apt-cache-policy-installed: libcurl4 libcurl4.policy-installed
EOI
LC_ALL=C apt-cache policy --quiet libcurl4 libcurl4-openssl-dev <libcurl4+libcurl4-openssl-dev.policy
LC_ALL=C apt-cache policy --quiet libcurl3-gnutls libcurl4-gnutls-dev <libcurl3-gnutls+libcurl4-gnutls-dev.policy
sudo apt-get update --quiet --assume-no
LC_ALL=C apt-cache policy --quiet libcurl4 libcurl4-openssl-dev <libcurl4+libcurl4-openssl-dev.policy
LC_ALL=C apt-cache policy --quiet libcurl3-gnutls libcurl4-gnutls-dev <libcurl3-gnutls+libcurl4-gnutls-dev.policy
sudo apt-get install --quiet --assume-no libcurl4 libcurl4-openssl-dev
LC_ALL=C apt-cache policy --quiet libcurl4 <libcurl4.policy-installed
EOE
libcurl 7.87.0 (libcurl4 7.87.0-2) part installed
EOO
: none-installed
:
ln -s ../libcurl.manifest ./;
cat <<EOI >=libcurl4+libcurl4-openssl-dev.policy;
libcurl4:
Installed: (none)
Candidate: 7.87.0-2
Version table:
7.87.0-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
libcurl4-openssl-dev:
Installed: (none)
Candidate: 7.87.0-2
Version table:
7.87.0-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
cat <<EOI >=libcurl3-gnutls+libcurl4-gnutls-dev.policy;
libcurl3-gnutls:
Installed: (none)
Candidate: 7.87.0-2
Version table:
7.87.0-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
libcurl4-gnutls-dev:
Installed: (none)
Candidate: 7.87.0-2
Version table:
7.87.0-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
$* libcurl --install libcurl <<EOI 2>>EOE != 0
manifest: libcurl libcurl.manifest
apt-cache-policy: libcurl4 libcurl4-openssl-dev libcurl4+libcurl4-openssl-dev.policy
apt-cache-policy: libcurl3-gnutls libcurl4-gnutls-dev libcurl3-gnutls+libcurl4-gnutls-dev.policy
EOI
LC_ALL=C apt-cache policy --quiet libcurl4 libcurl4-openssl-dev <libcurl4+libcurl4-openssl-dev.policy
LC_ALL=C apt-cache policy --quiet libcurl3-gnutls libcurl4-gnutls-dev <libcurl3-gnutls+libcurl4-gnutls-dev.policy
sudo apt-get update --quiet --assume-no
LC_ALL=C apt-cache policy --quiet libcurl4 libcurl4-openssl-dev <libcurl4+libcurl4-openssl-dev.policy
LC_ALL=C apt-cache policy --quiet libcurl3-gnutls libcurl4-gnutls-dev <libcurl3-gnutls+libcurl4-gnutls-dev.policy
error: multiple available debian packages for libcurl
info: candidate: libcurl4 7.87.0-2
info: candidate: libcurl3-gnutls 7.87.0-2
info: consider installing the desired package manually and retrying the bpkg command
EOE
: both-part-installed
:
ln -s ../libcurl.manifest ./;
cat <<EOI >=libcurl4+libcurl4-openssl-dev.policy;
libcurl4:
Installed: 7.85.0-1
Candidate: 7.87.0-2
Version table:
7.87.0-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
*** 7.85.0-1 100
100 /var/lib/dpkg/status
libcurl4-openssl-dev:
Installed: (none)
Candidate: 7.87.0-2
Version table:
7.87.0-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
cat <<EOI >=libcurl3-gnutls+libcurl4-gnutls-dev.policy;
libcurl3-gnutls:
Installed: 7.85.0-1
Candidate: 7.87.0-2
Version table:
7.87.0-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
*** 7.85.0-1 100
100 /var/lib/dpkg/status
libcurl4-gnutls-dev:
Installed: (none)
Candidate: 7.87.0-2
Version table:
7.87.0-2 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
EOI
$* libcurl --install libcurl <<EOI 2>>EOE != 0
manifest: libcurl libcurl.manifest
apt-cache-policy: libcurl4 libcurl4-openssl-dev libcurl4+libcurl4-openssl-dev.policy
apt-cache-policy: libcurl3-gnutls libcurl4-gnutls-dev libcurl3-gnutls+libcurl4-gnutls-dev.policy
EOI
LC_ALL=C apt-cache policy --quiet libcurl4 libcurl4-openssl-dev <libcurl4+libcurl4-openssl-dev.policy
LC_ALL=C apt-cache policy --quiet libcurl3-gnutls libcurl4-gnutls-dev <libcurl3-gnutls+libcurl4-gnutls-dev.policy
sudo apt-get update --quiet --assume-no
LC_ALL=C apt-cache policy --quiet libcurl4 libcurl4-openssl-dev <libcurl4+libcurl4-openssl-dev.policy
LC_ALL=C apt-cache policy --quiet libcurl3-gnutls libcurl4-gnutls-dev <libcurl3-gnutls+libcurl4-gnutls-dev.policy
error: multiple partially installed debian packages for libcurl
info: candidate: libcurl4 7.87.0-2, missing components: libcurl4-openssl-dev
info: candidate: libcurl3-gnutls 7.87.0-2, missing components: libcurl4-gnutls-dev
info: consider fully installing the desired package manually and retrying the bpkg command
EOE
}
}
|