用yum安装未签名的软件包

相同:1 rpm -ivh package.rpm2 yum localinstall package.rpm3编辑/etc/yum.conf或repository.repo并将gpgcheck的值从1更改为0(!危险)
.

0

linux命令:yum --nogpgcheck install "examplePackage" "examplePackage" install --nogpgcheck yum yum --nogpgcheck install "examplePackage"rootopen.com
linux命令:yum --nogpgcheck install "examplePackage" "examplePackage" install --nogpgcheck yum yum --nogpgcheck install "examplePackage"rootopen.com
yhbe 2018-05-22 09:54:48
输出

评论

相关推荐

该命令在CentOS上安装Apache 2和其他实用程序

linux命令:yum install httpd httpd install yum yum install httpdrootopen.com
linux命令:yum install httpd httpd install yum yum install httpdrootopen.com
.

从互联网下载RPM时,您不必'rpm -i'或'rpm -U'来安装软件包。特别是,如果软件包有依赖关系。如果您有YUM设置来访问RPM存储库,那么此命令将安装下载的软件包,然后通过它依赖的YUM来安装任何依赖项。在基于RPM的系统上非常方便。

linux命令:yum localinstall /path/to/package.rpm /path/to/package.rpm localinstall yum yum localinstall /path/to/package.rpmrootopen.com
linux命令:yum localinstall /path/to/package.rpm /path/to/package.rpm localinstall yum yum localinstall /path/to/package.rpmrootopen.com
.

这对于删除所有属于公共套件的软件包非常有用。

linux命令:yum erase `yum list installed | grep 'php'` 'php'` grep | installed list `yum erase yum yum erase `yum list installed | grep 'php'`rootopen.com
linux命令:yum erase `yum list installed | grep 'php'` 'php'` grep | installed list `yum erase yum yum erase `yum list installed | grep 'php'`rootopen.com
.

linux命令:yum clean all ; rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/releases/11/Fedora/i386/os/Packages/fedora-release-11-1.noarch.rpm ; yum -y upgrade ; reboot reboot ; upgrade -y yum ; http://download.fedora.redhat.com/pub/fedora/linux/releases/11/Fedora/i386/os/Packages/fedora-release-11-1.noarch.rpm -Uvh rpm ; all clean yum yum clean all ; rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/releases/11/Fedora/i386/os/Packages/fedora-release-11-1.noarch.rpm ; yum -y upgrade ; rebootrootopen.com
linux命令:yum clean all ; rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/releases/11/Fedora/i386/os/Packages/fedora-release-11-1.noarch.rpm ; yum -y upgrade ; reboot reboot ; upgrade -y yum ; http://download.fedora.redhat.com/pub/fedora/linux/releases/11/Fedora/i386/os/Packages/fedora-release-11-1.noarch.rpm -Uvh rpm ; all clean yum yum clean all ; rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/releases/11/Fedora/i386/os/Packages/fedora-release-11-1.noarch.rpm ; yum -y upgrade ; rebootrootopen.com
.

RHEL / CentOS支持4GB或更多RAM(内存)

linux命令:yum install kernel-PAE kernel-PAE install yum yum install kernel-PAErootopen.com
linux命令:yum install kernel-PAE kernel-PAE install yum yum install kernel-PAErootopen.com
.

缓存,域名服务器

linux命令:yum -y install bind bind-chroot caching-nameserver caching-nameserver bind-chroot bind install -y yum yum -y install bind bind-chroot caching-nameserverrootopen.com
linux命令:yum -y install bind bind-chroot caching-nameserver caching-nameserver bind-chroot bind install -y yum yum -y install bind bind-chroot caching-nameserverrootopen.com
.

linux命令:yum install vixie-cron crontabs crontabs vixie-cron install yum yum install vixie-cron crontabsrootopen.com
linux命令:yum install vixie-cron crontabs crontabs vixie-cron install yum yum install vixie-cron crontabsrootopen.com
.

如何用yum列出一个回购。首先,我禁用所有回购,其次我只启用我想要列出的回购。

linux命令:yum --disablerepo=* --enablerepo=epel list available available list --enablerepo=epel --disablerepo=* yum yum --disablerepo=* --enablerepo=epel list availablerootopen.com
linux命令:yum --disablerepo=* --enablerepo=epel list available available list --enablerepo=epel --disablerepo=* yum yum --disablerepo=* --enablerepo=epel list availablerootopen.com
.

linux命令:yum install fortune-firefly; fortune fortune fortune-firefly; install yum yum install fortune-firefly; fortunerootopen.com
linux命令:yum install fortune-firefly; fortune fortune fortune-firefly; install yum yum install fortune-firefly; fortunerootopen.com
.

该命令将安装提供你需要链接的库的软件包,例如当你编译需要opengl库的东西时:gcc -o testgl testgl.c -lGLEW -lGL -lGLU -lglutyou可以使用`/usr/lib/libGLEW.so /usr/lib/libGL.so /usr/lib/libGLU.so /usr/lib/libglut.so”

linux命令:yum whatprovides /usr/lib/libXX1.so /usr/lib/libXX2.so | grep fc | sed 's/^\(.*\)-[0-9.]*-.*$/\1/' | sort | uniq | xargs yum -y install install -y yum xargs | uniq | sort | 's/^\(.*\)-[0-9.]*-.*$/\1/' sed | fc grep | /usr/lib/libXX2.so /usr/lib/libXX1.so whatprovides yum yum whatprovides /usr/lib/libXX1.so /usr/lib/libXX2.so | grep fc | sed 's/^\(.*\)-[0-9.]*-.*$/\1/' | sort | uniq | xargs yum -y installrootopen.com
linux命令:yum whatprovides /usr/lib/libXX1.so /usr/lib/libXX2.so | grep fc | sed 's/^\(.*\)-[0-9.]*-.*$/\1/' | sort | uniq | xargs yum -y install install -y yum xargs | uniq | sort | 's/^\(.*\)-[0-9.]*-.*$/\1/' sed | fc grep | /usr/lib/libXX2.so /usr/lib/libXX1.so whatprovides yum yum whatprovides /usr/lib/libXX1.so /usr/lib/libXX2.so | grep fc | sed 's/^\(.*\)-[0-9.]*-.*$/\1/' | sort | uniq | xargs yum -y installrootopen.com
.

从x86_64 CentOS / RHEL中删除i386 RPM软件包

linux命令:yum remove `rpm -qa --qf "%{n}.%{arch}\n"|grep i386` i386` "%{n}.%{arch}\n"|grep --qf -qa `rpm remove yum yum remove `rpm -qa --qf "%{n}.%{arch}\n"|grep i386`rootopen.com
linux命令:yum remove `rpm -qa --qf "%{n}.%{arch}\n"|grep i386` i386` "%{n}.%{arch}\n"|grep --qf -qa `rpm remove yum yum remove `rpm -qa --qf "%{n}.%{arch}\n"|grep i386`rootopen.com
.

从x86_64 CentOS / RHEL中删除i386 RPM软件包

linux命令:yum remove \*.i\?86 \*.i\?86 remove yum yum remove \*.i\?86rootopen.com
linux命令:yum remove \*.i\?86 \*.i\?86 remove yum yum remove \*.i\?86rootopen.com
.

使用ZSH而不是bash,键入..会将您移动到一个目录,而不需要别名。

linux命令:yum install zsh zsh install yum yum install zshrootopen.com
linux命令:yum install zsh zsh install yum yum install zshrootopen.com
.

安装php-tidy模块/扩展

linux命令:yum install php-tidy php-tidy install yum yum install php-tidyrootopen.com
linux命令:yum install php-tidy php-tidy install yum yum install php-tidyrootopen.com
.

非常适合移动、重新安装等,因为它不是特定于版本的,而是特定于体系结构的

linux命令:yum list installed| awk '{print $1}'| grep -e "x86" -e "noarch" | grep -v -e '^@'| sort sort '^@'| -e -v grep | "noarch" -e "x86" -e grep $1}'| '{print awk installed| list yum yum list installed| awk '{print $1}'| grep -e "x86" -e "noarch" | grep -v -e '^@'| sortrootopen.com
linux命令:yum list installed| awk '{print $1}'| grep -e "x86" -e "noarch" | grep -v -e '^@'| sort sort '^@'| -e -v grep | "noarch" -e "x86" -e grep $1}'| '{print awk installed| list yum yum list installed| awk '{print $1}'| grep -e "x86" -e "noarch" | grep -v -e '^@'| sortrootopen.com
.
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

推荐
    热门命令