Jump to content

Translations:Nix (package manager)/14/zh: Difference between revisions

From Official NixOS Wiki
FuzzyBot (talk | contribs)
m FuzzyBot moved page Translations:Nix package manager/14/zh to Translations:Nix (package manager)/14/zh without leaving a redirect: Part of translatable page "Nix package manager"
Weijia (talk | contribs)
No edit summary
Line 1: Line 1:
了建个连贯的用户或统环境, Nix将Nix存储库中的条目符号链接到''profile''. 是Nix允许"前端": 因为存储库是不可, 而的profile版本被保留了下来, 回更早状态需要简单号链接指向一个先前的profile. 更精确地说, Nix将进制文件号链接到Nix存储库描述户环的条目中. 这些用户环随之被符号链接到<code>/nix/var/nix/profiles</code>中带有标签的profile, 这些profile又被号链接到用的<code>~/.nix-profile</code>.
建一個一致的用戶和統設定,Nix 連結 Nix 商店入口進入 ''設定檔 (profile)'' 中。這是 Nix 進行的前端:由於商店是不可的且保留先前版本的設定文件,將系統還原先前狀態是簡單號連結更改為先前的設定。更精確來說,Nix 將進位檔案號連結到 Nix 商店的入口,這些入口代表了使者環。這些用戶環隨後被符號連結儲存在 <code>/nix/var/nix/profiles</code> 被標注的設定檔,它們則進一步號連結使的 <code>~/.nix-profile</code>

Revision as of 17:59, 28 August 2025

Message definition (Nix (package manager))
In order to construct a coherent user or system environment, Nix symlinks entries of the Nix store into ''profiles''. These are the front-end by which Nix allows rollbacks: since the store is immutable and previous versions of profiles are kept, reverting to an earlier state is simply a matter of change the symlink to a previous profile. To be more precise, Nix symlinks binaries into entries of the Nix store representing the user environments. These user environments are then symlinked into labeled profiles stored in <code>/nix/var/nix/profiles</code>, which are in turn symlinked to the user's <code>~/.nix-profile</code>.

為了構建一個一致的用戶和系統設定,Nix 連結 Nix 商店入口進入 設定檔 (profile) 中。這些是 Nix 進行回滾的前端:由於商店是不可變的且保留先前版本的設定文件,將系統還原到先前的狀態只是簡單地將符號連結更改為先前的設定。更精確來說,Nix 將二進位檔案符號連結到 Nix 商店中的入口,這些入口代表了使用者環境。這些用戶環境隨後被符號連結到儲存在 /nix/var/nix/profiles 中被標注的設定檔,而它們則進一步符號連結到使用者的 ~/.nix-profile