Fedora 25から27にアップグレード - スペース不足

Fedora 25から27にアップグレード - スペース不足

Fedora 25からFedora 27にアップグレードしようとしています。私はフォローしました雑誌しかし、実行するとき

sudo dnf system-upgrade download --releasever=27 ‐‐allowerasing

アップグレードを完了するのに十分なスペースがないことがわかりました。

私の空きディスク容量は次のとおりです

[root@pcen35240 ~]# df -h
Filesystem               Size  Used Avail Use% Mounted on
devtmpfs                 3.8G     0  3.8G   0% /dev
tmpfs                    3.8G  111M  3.7G   3% /dev/shm
tmpfs                    3.8G  1.8M  3.8G   1% /run
tmpfs                    3.8G     0  3.8G   0% /sys/fs/cgroup
/dev/mapper/fedora-root   50G   44G  2.6G  95% /
tmpfs                    3.8G   32K  3.8G   1% /tmp
/dev/nvme0n1p1           477M  174M  274M  39% /boot
/dev/mapper/fedora-home  178G   91G   79G  54% /home
tmpfs                    762M   64K  762M   1% /run/user/1000

まず、あまりにも多くのスペースを占めるのは奇妙に見えます/(これは仕事用のラップトップなので設定しませんでした)。

アップグレードを完了するにはどうすればよいですか?からにいくつかの/home/スペースを再割り当てできますか/

ベストアンサー1

クリーンアップを実行して、ルートパーティションのディスク領域を空にします。一般的に50Gで十分です。パーティションのサイズを変更する必要はありません。

パケットマネージャをきれいにしてください 隠れ家。ただ次のことを行いますdnf clean all

   dnf clean dbcache
          Removes cache files generated from the repository metadata. This forces DNF to regenerate the cache files the next time it is run.

   dnf clean expire-cache
          Removes local cookie files saying when the metadata and mirrorlists were downloaded for each repo. DNF will re-validate the cache for each repo the next time it is used.

   dnf clean metadata
          Removes repository metadata. Those are the files which DNF uses to determine the remote availability of packages. Using this option will make DNF download all the metadata the next time it is
          run.

   dnf clean packages
          Removes any cached packages from the system.

   dnf clean plugins
          Tells all enabled plugins to eliminate their cached data.

   dnf clean all
          Does all of the above.

未使用のパッケージを削除します。インストールされたコンテンツの表示:dnf list installed

他の場所/root /opt /srvには、ダウンロードしたファイルまたはカスタムインストールがあります。

次のコマンドは、各ディレクトリで使用されるスペースの量に関する情報を提供します。

sudo du -sh /root /opt /srv

次のコマンドは、システムで最大10個のファイルを表示します(時間がかかる場合があります)。

sudo du -hsx /* | sort -rh | head -10

おすすめ記事