blob: 79023aa3d8fe68ccdc9182bb2f6dbcc82eb4363b (
plain)
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
|
#!/usr/bin/env bash
source /usr/lib/sisyphus/libsisyphus.sh
checksystemmode
action=$1
shift
case "$action" in
install)
checksync
localdbcsvpre
emerge -a "$@"
updatelocaldb
;;
uninstall)
checksync
localdbcsvpre
emerge --depclean -a "$@"
updatelocaldb
;;
force-uninstall)
checksync
localdbcsvpre
emerge --unmerge -a "$@"
updatelocaldb
;;
remove-orphans)
checksync
localdbcsvpre
emerge --depclean -a
updatelocaldb
;;
upgrade)
checksync
localdbcsvpre
emerge -uDaN --with-bdeps=y @system @world "$@"
updatelocaldb
;;
auto-install)
redcoresync
localdbcsvpre
emerge "$@"
updatelocaldb
;;
auto-uninstall)
redcoresync
localdbcsvpre
emerge --depclean "$@"
updatelocaldb
;;
auto-force-uninstall)
redcoresync
localdbcsvpre
emerge --unmerge "$@"
updatelocaldb
;;
auto-remove-orphans)
redcoresync
localdbcsvpre
emerge --depclean -q
updatelocaldb
;;
auto-upgrade)
redcoresync
localdbcsvpre
emerge -uDN --with-bdeps=y @system @world "$@"
updatelocaldb
;;
search)
emerge -s "$@"
;;
update)
redcoresync
;;
belongs)
equery belongs "$@"
;;
depends)
equery depends "$@"
;;
files)
equery files "$@"
;;
sysinfo)
emerge --info
;;
*)
cat <<-"EOH"
Usage: sisyphus command [package(s)]
sisyphus is a simple wrapper around portage, gentoolkit, and portage-utils that provides an
apt-get/yum-alike interface to these commands, to assist people transitioning from
Debian/RedHat-based systems to Gentoo.
Commands :
install - Install new packages
uninstall - Uninstall packages safely
force-uninstall - *Unsafely* uninstall packages
remove-orphans - Uninstall packages that are no longer needed
upgrade - Upgrade system
auto-install - Install new packages (no confirmation)
auto-uninstall - Uninstall packages safely (no confirmation)
auto-force-uninstall - *Unsafely* uninstall packages (no confirmation)
auto-remove-orphans - Uninstall packages that are no longer needed (no confirmation)
auto-upgrade - Upgrade system (no confirmation)
search - Search for packages
update - Resync portage tree, portage config && redcore overlay
belongs - List what package FILE(s) belong to
depends - List all packages directly depending on given package
files - List all files installed by package
sysinfo - Display information about installed core packages and portage configuration
EOH
;;
esac
|