我正在尝试使用alien --scripts
将.noarch.rpm
文件变成.deb
文件,但是它不起作用。我正在尝试安装 Oracle SQL Developer:
我已经sqldeveloper-4.0.3.16.84-1.noarch.rpm
从以下位置下载了该软件包这里。
alien --scripts sqldeveloper-4.0.3.16.84-1.noarch.rpm
此时,我希望sqldeveloper_4.0.3.16.84-2_all.deb
创建该文件,以便我可以调用以下命令来安装它:
dpkg -i sqldeveloper_4.0.3.16.84-2_all.deb
然而,这种情况并非如此。当我打电话时,alien --scripts sqldeveloper-4.0.3.16.84-1.noarch.rpm
我得到一个名为 的文件夹sqldeveloper-4.0.3.16.84
。查看该文件夹后,我发现有很大一部分程序丢失,该文件夹包含用于设置和运行 SQL Developer 的所有可执行脚本。
我正在使用 Debian Linux 服务器,版本 6.0.10。
有没有办法让它.deb
在调用alien --scripts
命令时创建文件?
答案1
请尝试以下操作:
alien -r --scripts sqldeveloper-4.0.3.16.84-1.noarch.rpm
答案2
这适合我在全新的 Ubuntu 23.04 安装上安装 SQLDeveloper。
既然提问者说“我正在努力安装Oracle SQL Developer”,该--install
标志很有用。来自帮助:
-i
,--install
:自动安装每个生成的包,并在安装后删除包文件。
sudo apt install alien openjdk-11-jdk
下载.rpm
到当前文件夹(此处使用sqldeveloper-23.1.0.097.1607.noarch.rpm
);然后:
sudo alien -i sqldeveloper-*.rpm # Wait several minutes
sqldeveloper
alien
给我以下警告,但仍然有效:
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
Warning: Skipping conversion of scripts in package sqldeveloper: postinst
Warning: Use the --scripts parameter to include the scripts.
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
warning: RPM v3 packages are deprecated: sqldeveloper-23.1.0-097.1607.noarch
dpkg --no-force-overwrite -i sqldeveloper_23.1.0-98.1607_all.deb
Selecting previously unselected package sqldeveloper.
(Reading database ... 220460 files and directories currently installed.)
Preparing to unpack sqldeveloper_23.1.0-98.1607_all.deb ...
Unpacking sqldeveloper (23.1.0-98.1607) ...
Setting up sqldeveloper (23.1.0-98.1607) ...