viv*_*vek 26 package-management uninstall apt gitlab
我刚刚从我的 ubuntu 16.04 系统中删除了一个包。删除包后,终端显示如下警告:
Removing gitlab-ce (8.10.4-ce.0) ...
Purging configuration files for gitlab-ce (8.10.4-ce.0)...
dpkg: warning: while removing gitlab-ce, directory '/opt/gitlab/sv' not empty so not removed
dpkg: warning: while removing gitlab-ce, directory '/opt/gitlab/etc' not empty so not removed
dpkg: warning: while removing gitlab-ce, directory '/opt/gitlab/service' not empty so not removed
dpkg: warning: while removing gitlab-ce, directory '/opt/gitlab/embedded/cookbooks' not empty so not removed
dpkg: warning: while removing gitlab-ce, directory '/opt/gitlab/embedded/ssl/certs' not empty so not removed
dpkg: warning: while removing gitlab-ce, directory '/opt/gitlab/embedded/service/gitlab-rails/public' not empty so not emoved
dpkg: warning: while removing gitlab-ce, directory '/opt/gitlab/embedded/service/gitlab-rails/config/initializers' not empty so not removed
dpkg: warning: while removing gitlab-ce, directory '/opt/gitlab/embedded/service/gitlab-shell' not empty so not removed
dpkg: warning: while removing gitlab-ce, directory '/opt/gitlab/init' not empty so not removed
Run Code Online (Sandbox Code Playgroud)
它说该/opt/gitlab/目录不是空的,所以它不能从系统中删除那些。
我应该手动删除这些目录吗?
Anw*_*war 52
该目录gitlab-ce reconfigure在安装后填充命令并保存变量数据,与gitlab-ce包相关的配置。
推荐的卸载过程是
删除服务
sudo gitlab-ctl uninstall
Run Code Online (Sandbox Code Playgroud)
清理使用包生成的任何数据
sudo gitlab-ctl cleanse
Run Code Online (Sandbox Code Playgroud)
您可能还想删除您配置的任何帐户。这样做
sudo gitlab-ctl remove-accounts
Run Code Online (Sandbox Code Playgroud)
然后使用删除包
sudo dpkg -P gitlab-ce
Run Code Online (Sandbox Code Playgroud)
此外,gitlab-CE使用这些目录(如所描述的在这里)
/opt/gitlab 保存 GitLab 及其依赖项的应用程序代码。/var/opt/gitlab 保存 gitlab-ctl reconfigure 写入的应用程序数据和配置文件。/etc/gitlab保存 omnibus-gitlab 的配置文件。这些是您必须手动编辑的唯一文件。/var/log/gitlab 包含由 omnibus-gitlab 的组件生成的所有日志数据。所以,首先删除包推荐的方式(即使你需要重新安装它)。然后,您可以rm安全地删除这些数据。
从 omnibus-gitlab README 页面找到的信息
| 归档时间: |
|
| 查看次数: |
37666 次 |
| 最近记录: |