我试图在Kali Linux中安装rar来创建rar存档文件。我跟踪了一些文章,这些文章说要使用这个命令:
sudo apt install rar。然而,它返回时:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package rar is not available, but is referred to by another package.
This may mean that the package is missing, has be
building in /tmp/pear/temp/rar
running: phpize
sh: phpize: command not found
rolling back 388 file operations
ERROR: `phpize' failed
使用命令"pecl -v install rar“试图安装php的RAR包时会出现此错误。
这意味着什么,我怎样才能解决它?我是linux新手。
我正在尝试从rar存档中删除一个文件。如果运行/usr/bin/rar d rar_file.rar del.txt,此命令将从rar_file.rar中删除文件del.txt
我试着用exec()在php中运行它,但是它不工作。
<?php
$file = realpath("temp/temp.rar");
chmod($file, 0777); //make sure I can handle the file
if(file_exists($file)){ //Make sure that the file exists
$rar = escapeshel
我安装了unrar和rar二进制文件。我想提取一个档案:
root@vps1129135:/home/mc/plugins# unrar e plugins.rar
UNRAR 3.91 freeware Copyright (c) 1993-2009 Alexander Roshal
plugins.rar is not RAR archive
No files to extract
我需要用Python3在谷歌Colab解压.rar文件。首先,我尝试用MacOS进行本地化。
我已经安装了Patoolib包:
pip install patool
和unrar解压.rar文件
brew install unrar
然后,在我的python脚本中,我这样做:
import patoolib
patoolib.extract_archive("data_2/Peliculas.rar", outdir="/data_2")
我得到了以下错误:
PatoolError: could not find an executable program to
我有一个20 VM的RAR文件,可以在上提取密码。
我首先尝试了sudo apt-get install unrar,但是给出了以下输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package unrar is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted,
我需要通过shell解压缩不同类型的扩展,比如.zip (p7zip-full),.rar (unrar-free)。
相反,我很难找到正确的命令。对于RAR,它说没有候选人。
$ sudo apt install -y --install-recommends rar
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package rar is not available, but is referred to by another p