Using apt in an RPM world

本文介绍如何在 CentOS 系统上安装并使用 apt-rpm 工具,该工具可提供比 yum 更快更一致的包管理体验,支持多库共存、多架构并行等特性。

from: http://dag.wiee.rs/blog/using-apt-in-an-rpm-world

Everytime I am surprised that people don't know that apt-get works on RPM-based distributions and works much better than the alternatives. Especially in a CentOS/RHEL environment where you have various distribution releases running, apt-rpm allows you to use the same apt version and the same apt features across CentOS/RHEL 2.1, 3, 4 and 5.

In an attempt to persuade you to try out apt, let me denounce some myths about the current apt-rpm:

  • works on RPM packages
  • can do multilib (coexist 32bit and 64bit)
  • does check GPG keys on packages
  • can work with repomd repositories (as used by yum)
  • does work a lot faster than yum
  • is being maintained (although could use more hands)
  • has python bindings
  • has a graphical interface (synaptics)
  • handles multiple repositories much better
  • allows to pin packages by version or repository (and manages cross-dependencies)
  • existed years before yum (and was the only depsolver for a few years in the Red Hat world)

Now, because I can say it works great but you may not believe me, let me make it very simple for you to try it out on CentOS. Here is a quickstart guide...

First we start off installing apt from RPMforge. Follow the guide on the CentOS wiki to configure RPMforge for your system. Then do:

yum install apt

(or alternatively install the latest apt RPM package from http://packages.sw.be/apt/for your distribution)

and then edit the file /etc/apt/sources.list.d/os.list and add for CentOS:

repomd http://mirror.centos.org/ centos/$(VERSION)/os/$(ARCH)
repomd http://mirror.centos.org/ centos/$(VERSION)/updates/$(ARCH)
repomd http://mirror.centos.org/ centos/$(VERSION)/extras/$(ARCH)

This adds the official CentOS osupdates and extras repositories.

Now you can use it, for example do:

apt-get update

to update the locally cached metadata, or do:

apt-get upgrade

to upgrade your system with the latest updates, or yet, do:

apt-get install synaptic

to install a package named synaptic. Try:

synaptic

to start synaptic and use the graphical interface (also available from System > Administration > Synaptic Package Management)

There are a few commands that use the locally cached metadata, the following apt-cache commands are used most often:

apt-cache search keyword

to search the local metadata for packages related to keyword, or:

apt-cache policy package

to show the different versions of a certain package that is offered.

PS And let me also add that the project name is apt-rpmnot apt4rpm (a complete different project).

> install.packages("devtools") 将程序包安装入‘/home/haichao/R/x86_64-pc-linux-gnu-library/4.5’ (因为‘lib’没有被指定) 还安装依赖关系‘ragg’, ‘pkgdown’ 试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/ragg_1.4.0.tar.gz' 试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/pkgdown_2.1.3.tar.gz' 试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/devtools_2.4.5.tar.gz' * installing *source* package ‘ragg’ ... ** this is package ‘ragg’ version ‘1.4.0’ ** 成功将‘ragg’程序包解包并MD5和检查 ** using staged installation Package libtiff-4 was not found in the pkg-config search path. Perhaps you should add the directory containing `libtiff-4.pc' to the PKG_CONFIG_PATH environment variable Package 'libtiff-4', required by 'virtual:world', not found Package libtiff-4 was not found in the pkg-config search path. Perhaps you should add the directory containing `libtiff-4.pc' to the PKG_CONFIG_PATH environment variable Package 'libtiff-4', required by 'virtual:world', not found Using PKG_CFLAGS= Using PKG_LIBS=-lfreetype -lpng16 -ltiff -lz -ljpeg -lbz2 -----------------------------[ ANTICONF ]------------------------------- Configuration failed to find one of freetype2 libpng libtiff-4 libjpeg. Try installing: * deb: libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev (Debian, Ubuntu, etc) * rpm: freetype-devel libpng-devel libtiff-devel libjpeg-devel (Fedora, CentOS, RHEL) If freetype2 libpng libtiff-4 libjpeg is already installed, check that 'pkg-config' is in your PATH and PKG_CONFIG_PATH contains a freetype2 libpng libtiff-4 libjpeg.pc file. If pkg-config is unavailable you can set INCLUDE_DIR and LIB_DIR manually via: R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...' -------------------------- [ERROR MESSAGE] --------------------------- <stdin>:1:10: fatal error: ft2build.h: 没有那个文件或目录 compilation terminated. -------------------------------------------------------------------- ERROR: configuration failed for package ‘ragg’ * removing ‘/home/haichao/R/x86_64-pc-linux-gnu-library/4.5/ragg’ ERROR: dependency ‘ragg’ is not available for package ‘pkgdown’ Perhaps try a variation of: install.packages('ragg') * removing ‘/home/haichao/R/x86_64-pc-linux-gnu-library/4.5/pkgdown’ ERROR: dependency ‘pkgdown’ is not available for package ‘devtools’ Perhaps try a variation of: install.packages('pkgdown') * removing ‘/home/haichao/R/x86_64-pc-linux-gnu-library/4.5/devtools’ 下载的程序包在 ‘/tmp/RtmpCFCiF3/downloaded_packages’里 警告信息: 1: In install.packages("devtools") : 安装程序包‘ragg’时退出狀態的值不是0 2: In install.packages("devtools") : 安装程序包‘pkgdown’时退出狀態的值不是0 3: In install.packages("devtools") : 安装程序包‘devtools’时退出狀態的值不是0 > library(devtools) 错误于library(devtools): 不存在叫‘devtools’这个名称的程序包
07-12
这个是完整源码 python实现 Flask,Vue 【python毕业设计】基于Python的Flask+Vue物业管理系统 源码+论文+sql脚本 完整版 数据库是mysql 本文首先实现了基于Python的Flask+Vue物业管理系统技术的发展随后依照传统的软件开发流程,最先为系统挑选适用的言语和软件开发平台,依据需求分析开展控制模块制做和数据库查询构造设计,随后依据系统整体功能模块的设计,制作系统的功能模块图、E-R图。随后,设计框架,依据设计的框架撰写编码,完成系统的每个功能模块。最终,对基本系统开展了检测,包含软件性能测试、单元测试和性能指标。测试结果表明,该系统能够实现所需的功能,运行状况尚可并无明显缺点。本文首先实现了基于Python的Flask+Vue物业管理系统技术的发展随后依照传统的软件开发流程,最先为系统挑选适用的言语和软件开发平台,依据需求分析开展控制模块制做和数据库查询构造设计,随后依据系统整体功能模块的设计,制作系统的功能模块图、E-R图。随后,设计框架,依据设计的框架撰写编码,完成系统的每个功能模块。最终,对基本系统开展了检测,包含软件性能测试、单元测试和性能指标。测试结果表明,该系统能够实现所需的功能,运行状况尚可并无明显缺点。本文首先实现了基于Python的Flask+Vue物业管理系统技术的发展随后依照传统的软件开发流程,最先为系统挑选适用的言语和软件开发平台,依据需求分析开展控制模块制做和数据库查询构造设计,随后依据系统整体功能模块的设计,制作系统的功能模块图、E-R图。随后,设计框架,依据设计的框架撰写编码,完成系统的每个功能模块。最终,对基本系统开展了检测,包含软件性能测试、单元测试和性能指标。测试结果表明,该系统能够实现所需的功能,运行状况尚可并无明显缺点。本文首先实现了基于Python的Flask+Vue物业管理系统技术的发
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值