这三个点是文件系统路径的一部分吗?

这三个点是文件系统路径的一部分吗?

跑步的时候apt-get install,我注意到了这一点:

Preparing to unpack .../PACKAGENAME_VERSION.deb ...
Unpacking PACKAGENAME (VERSION) ...

注意前面的 3 个点/PACKAGENAME_VERSION

这些点有什么含义吗?它们是文件系统路径的一部分吗,像./../

答案1

不,那只是省略。如果您好奇的话,实际路径更像是/var/cache/apt/archives/foo.deb。显然,dpkg只要您提供包的路径,就会添加它:

$ sudo dpkg -i vim-gnome_2%3a7.4.1529-1\~ppa1\~t_amd64.deb 
(Reading database ... 757002 files and directories currently installed.)
Preparing to unpack vim-gnome_2%3a7.4.1529-1~ppa1~t_amd64.deb ...
Unpacking vim-gnome (2:7.4.1529-1~ppa1~t) over (2:7.4.1529-1~ppa1~t) ...
Setting up vim-gnome (2:7.4.1529-1~ppa1~t) ...

$ sudo dpkg -i ./vim-gnome_2%3a7.4.1529-1\~ppa1\~t_amd64.deb  
(Reading database ... 757002 files and directories currently installed.)
Preparing to unpack .../vim-gnome_2%3a7.4.1529-1~ppa1~t_amd64.deb ...
Unpacking vim-gnome (2:7.4.1529-1~ppa1~t) over (2:7.4.1529-1~ppa1~t) ...
Setting up vim-gnome (2:7.4.1529-1~ppa1~t) ...

相关内容