repoまたはyumを使用せずにgccをインストールする

repoまたはyumを使用せずにgccをインストールする

Yumを使ってgccをインストールするのに問題があります。リポジトリにアクセスできず、開発者ツールをインストールできません。

.tgzwgetでファイルにインストールできるリンクはありますか?

私の質問は次のとおりです。

[root@localhost]# yum -y install gcc
Loaded plugins: fastestmirror
base                                                                     | 3.6 kB  00:00:00     
epel/x86_64/metalink                                                     |  15 kB  00:00:00     
extras                                                                   | 3.4 kB  00:00:00     
updates                                                                  | 3.4 kB  00:00:00     
xymon                                                                    | 2.9 kB  00:00:00     
xymon-testing                                                            | 2.9 kB  00:00:00     
Loading mirror speeds from cached hostfile
 * base: centos.mirror.constant.com
 * epel: mirror.steadfast.net
 * extras: mirrors.gigenet.com
 * updates: repo.us.bigstepcloud.com

設定されたリポジトリの1つが失敗し(不明)、yumにキャッシュされたデータが不足しているため、続行できません。この時点でyumができる唯一の安全なことは失敗です。この問題を「修正」する方法はいくつかあります。

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Disable the repository, so yum won't use it by default. Yum will then
    just ignore the repository until you permanently enable it again or use
    --enablerepo for temporary usage:

        yum-config-manager --disable <repoid>

 4. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:

        yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

ファイルが暗号化されているか、データベースではありません。

ベストアンサー1

これをインストールできますまあ使用ローカルインストール:

localinstall は、ローカル rpm ファイルセットをインストールするために使用されます。必要に応じて、アクティブなリポジトリを使用して依存関係を解決します。ファイル名が与えられると、install コマンドはローカルインストールを実行します。このコマンドは、従来の理由でのみ保持されます。

リポジトリからrpmをダウンロードし、正しいOSバージョンを選択することを忘れないでください(例:CentOSリポジトリ) 次に、次のコマンドを実行します。

yum localinstall /path/to/the/package.rpm


追加情報:yumコマンドを使用してrpmをインストールする方が楽しいですrpm。これにより、インストールされたパッケージがyumデータベースに一覧表示されます。

おすすめ記事