linux:commands:package_management

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
linux:commands:package_management [2023/10/04 13:59] ともやんlinux:commands:package_management [2024/04/22 05:53] (現在) – [パッケージ管理] ともやん
行 1: 行 1:
 +~~CLOSETOC~~
 +====== パッケージ管理関連 ======
 +{{INLINETOC wide 1-2}}
 +
 +====== パッケージ管理 [dnf/apt] ======
 +
 +===== パッケージ管理 =====
 <html> <html>
   <style>   <style>
 +    .wrap_mintbl_code table .wrap_color_term {
 +      margin: 0;
 +      padding: .5em;
 +    }
     .wrap_mintbl_code table .wrap_color_command pre {     .wrap_mintbl_code table .wrap_color_command pre {
-      padding: 3px;+      padding: 0;
       margin: 0 0 2px 0;       margin: 0 0 2px 0;
       width: 270px;       width: 270px;
       min-width: unset;       min-width: unset;
       word-wrap: inherit;       word-wrap: inherit;
 +      line-height: 14px;
     }     }
   </style>   </style>
行 16: 行 28:
   </script>   </script>
 </html> </html>
-~~CLOSETOC~~ 
-====== パッケージ管理関連 ====== 
-{{INLINETOC wide 1-2}} 
- 
-====== パッケージ管理 [dnf/apt] ====== 
- 
-===== パッケージ管理 ===== 
 <WRAP mintbl_code> <WRAP mintbl_code>
 ^  操作  ^  Fedora  ^  Ubuntu  ^ ^  操作  ^  Fedora  ^  Ubuntu  ^
-| インストール  | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>sudo dnf</b> install package_name</pre></html></WRAP></WRAP> | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>sudo apt</b> update+| インストール  | <WRAP color_term><WRAP color_command><html><pre><font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:single">sudo</u></font> <font color="#26A269">dnf</font> install package_name</pre></html></WRAP></WRAP> | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>sudo apt</b> update
 <b class=GRN>$</b> <b class=HIY>sudo apt</b> install package_name</pre></html></WRAP></WRAP> | <b class=GRN>$</b> <b class=HIY>sudo apt</b> install package_name</pre></html></WRAP></WRAP> |
-| アップデート  | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>sudo dnf</b> update package_name</pre></html></WRAP></WRAP> | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>sudo apt</b> install package_name</pre></html></WRAP></WRAP> |+| アップデート  | <WRAP color_term><WRAP color_command><html><pre><font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:single">sudo</u></font> <font color="#26A269">dnf</font> update</pre></html></WRAP></WRAP> <WRAP color_term><WRAP color_command><html><pre><font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:single">sudo</u></font> <font color="#26A269">dnf</font> update package_name</pre></html></WRAP></WRAP> | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>sudo apt</b> update 
 +<b class=GRN>$</b> <b class=HIY>sudo apt</b> upgrade package_name</pre></html></WRAP></WRAP> |
 | アンインストール  | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>sudo dnf</b> remove package_name</pre></html></WRAP></WRAP> | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>sudo apt</b> remove package_name</pre></html></WRAP></WRAP> | | アンインストール  | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>sudo dnf</b> remove package_name</pre></html></WRAP></WRAP> | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>sudo apt</b> remove package_name</pre></html></WRAP></WRAP> |
 | インストール済\\ パッケージの一覧表示  | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>dnf</b> list installed</pre></html></WRAP></WRAP> <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>dnf</b> list *package_name*</pre></html></WRAP></WRAP> <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>dnf</b> <b class=HIK>-qa</b></pre></html></WRAP></WRAP> <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>dnf</b> -qa | <b class=HIY>grep</b> package_name</pre></html></WRAP></WRAP> | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>dpkg</b> <b class=HIK>-l</b></pre></html></WRAP></WRAP> <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>dpkg</b> <b class=HIK>-l</b> | <b class=HIY>grep</b> package_name</pre></html></WRAP></WRAP>\\ | | インストール済\\ パッケージの一覧表示  | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>dnf</b> list installed</pre></html></WRAP></WRAP> <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>dnf</b> list *package_name*</pre></html></WRAP></WRAP> <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>dnf</b> <b class=HIK>-qa</b></pre></html></WRAP></WRAP> <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>dnf</b> -qa | <b class=HIY>grep</b> package_name</pre></html></WRAP></WRAP> | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>dpkg</b> <b class=HIK>-l</b></pre></html></WRAP></WRAP> <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>dpkg</b> <b class=HIK>-l</b> | <b class=HIY>grep</b> package_name</pre></html></WRAP></WRAP>\\ |
行 2457: 行 2463:
 ====== パッケージ管理 [pacman] ====== ====== パッケージ管理 [pacman] ======
 [[arc>Pacman|pacman - ArchWiki]]\\ [[arc>Pacman|pacman - ArchWiki]]\\
-[[arc>Pacman/%E6%AF%94%E8%BC%83%E8%A1%A8|Pacman/比較表 - ArchWiki]]\\+[[arc>Pacman/比較表|Pacman/比較表 - ArchWiki]]\\
  
 +<WRAP mintbl_code>
 ^ 操作  ^  コマンド  ^ ^ 操作  ^  コマンド  ^
 | インストール\\ (--overwrite 衝突ファイルの上書き)  | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>pacman</b> <b class=HIK>-S</b> package_name</pre></html></WRAP><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>pacman</b> <b class=HIK>-S --overwrite</b> '*' package_name</pre></html></WRAP></WRAP>   | | インストール\\ (--overwrite 衝突ファイルの上書き)  | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>pacman</b> <b class=HIK>-S</b> package_name</pre></html></WRAP><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>pacman</b> <b class=HIK>-S --overwrite</b> '*' package_name</pre></html></WRAP></WRAP>   |
行 2466: 行 2473:
 | パッケージの検索  | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>pacman</b> <b class=HIK>-Ss</b> package_name</pre></html></WRAP></WRAP>  | | パッケージの検索  | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>pacman</b> <b class=HIK>-Ss</b> package_name</pre></html></WRAP></WRAP>  |
 | パッケージ内\\ ファイル一覧  | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>pacman</b> <b class=HIK>-Q</b> package_name</pre></html></WRAP></WRAP>  | | パッケージ内\\ ファイル一覧  | <WRAP color_term><WRAP color_command><html><pre><b class=GRN>$</b> <b class=HIY>pacman</b> <b class=HIK>-Q</b> package_name</pre></html></WRAP></WRAP>  |
 +</WRAP>
 +
 +===== warning: database file for 'core'|'extra'  does not exist (use '-Sy' to download) が表示される🤔 =====
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +# pacman -Ss zsh
 +</pre></html></WRAP>
 +<WRAP color_command><html><pre>
 +warning: database file for &apos;core&apos; does not exist (use &apos;-Sy&apos; to download)
 +warning: database file for &apos;extra&apos; does not exist (use &apos;-Sy&apos; to download)
 +</pre></html></WRAP>
 +</WRAP>
 +
 +<html><code>pacman -Sy</code></html> でパッケージデータベースを同期する🤔\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +# pacman -Sy
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +:: Synchronizing package databases...
 + core downloading...
 + extra downloading...
 +</pre></html></WRAP>
 +<WRAP color_command><html><pre>
 +# pacman -Ss zsh
 +</pre></html></WRAP>
 +<WRAP color_result_hlong><html><pre>
 +extra/bash-preexec 0.5.0-2
 +    preexec and precmd functions for Bash just like Zsh
 +extra/grml-zsh-config 0.19.7-1
 +    grml&apos;s zsh setup
 +extra/powerline 2.8.3-3
 +    Statusline plugin for vim, and provides statuslines and prompts for several other applications, including
 +    zsh, bash, tmux, IPython, Awesome, i3 and Qtile
 +extra/python-click-completion 0.5.2-7
 +    Add or enhance bash, fish, zsh and powershell completion in Click
 +extra/zsh 5.9-5
 +    A very advanced and programmable command interpreter (shell) for UNIX
 +extra/zsh-autosuggestions 0.7.0-2
 +    Fish-like autosuggestions for zsh
 +extra/zsh-completions 0.35.0-1
 +    Additional completion definitions for Zsh
 +extra/zsh-doc 5.9-5
 +    Info, HTML and PDF format of the ZSH documentation
 +extra/zsh-history-substring-search 1.1.0-1
 +    ZSH port of Fish history search (up arrow)
 +extra/zsh-lovers 0.10.1-1
 +    A collection of tips, tricks and examples for the Z shell.
 +extra/zsh-syntax-highlighting 0.8.0-1
 +    Fish shell like syntax highlighting for Zsh
 +extra/zshdb 1.1.4-1
 +    A debugger for zsh scripts
 +</pre></html></WRAP>
 +</WRAP>
 ====== 参考文献 ====== ====== 参考文献 ======
 [[https://rheb.hatenablog.com/entry/201812-modularity|RHEL 8/Fedora 28で導入されたModularity - 赤帽エンジニアブログ]]\\ [[https://rheb.hatenablog.com/entry/201812-modularity|RHEL 8/Fedora 28で導入されたModularity - 赤帽エンジニアブログ]]\\
  • linux/commands/package_management.1696395566.txt.gz
  • 最終更新: 2023/10/04 13:59
  • by ともやん