- or download this
$ wget https://cpan.metacpan.org/authors/id/J/JM/JMCNAMARA/Excel-Write
+r-XLSX-1.03.tar.gz
$ cpanspec -b Excel-Writer-XLSX-1.03.tar.gz
- or download this
> error: Installed (but unpackaged) file(s) found:
> /usr/bin/extract_vba
> /usr/share/man/man1/extract_vba.1.gz
- or download this
%files
%{_mandir}/man1/*
%{_bindir}/*
- or download this
$ rpmbuild -ba perl-Excel-Writer-XLSX.spec --define "_sourcedir $PWD"
- or download this
> Wrote: ~/rpmbuild/SRPMS/perl-Excel-Writer-XLSX-1.03-1.el7.stopllc.sr
+c.rpm
> Wrote: ~/rpmbuild/RPMS/noarch/perl-Excel-Writer-XLSX-1.03-1.el7.stop
+llc.noarch.rpm
- or download this
sudo yum install ~/rpmbuild/RPMS/noarch/perl-Excel-Writer-XLSX-1.03-
+1.el7.stopllc.noarch.rpm #only command that needs root permissions
- or download this
rpm --addsign ~/rpmbuild/RPMS/noarch/perl-Excel-Writer-XLSX-1.03-1.e
+l7.stopllc.noarch.rpm
- or download this
sudo mkdir -p /var/www/html/yumrepo/ #only first time
sudo mv ~/rpmbuild/RPMS/noarch/perl-Excel-Writer-XLSX-1.03-1.el7.sto
+pllc.noarch.rpm /var/www/html/yumrepo/
sudo createrepo /var/www/html/yumrepo # new or deleting rpm
+s
sudo createrepo --update /var/www/html/yumrepo # if only adding rpms
- or download this
/etc/yum.repos.d/my.repo
[my-repo]
...
baseurl=http://127.0.0.1/yumrepo/
enabled=1
gpgcheck=0
- or download this
repomanage --keep=2 --old /var/www/html/yumrepo | xargs -P4 -I'{}' /
+bin/rm '{}` # delete versions older than the last two versions
createrepo /var/www/html/yumrepo
+ # rebuild the yum index