While I've been doing my Linux project, I've faced a problem with rebuilding the nano package so that after it is installed by the package manager, it becomes possible to launch the nano editor from any directory, by entering the command newnano. How can it be solved specifically using rpmrebuild package? Am I supposed to change nano manifest?
Asked
Active
Viewed 54 times
-1
-
1What does this have to do with Bash? – wjandrea Dec 08 '21 at 22:40
-
I'm asked to implement it in bash – polyatcc Dec 08 '21 at 22:45
-
1what prevents nano from being launched now? – stark Dec 08 '21 at 22:48
-
nothing, but this exact task I'm supposed to implement in my project :) – polyatcc Dec 08 '21 at 22:55
-
actually, I should rebuild nano package so that nano would launch using newnano. variant of using allias does not work here – polyatcc Dec 08 '21 at 23:03
1 Answers
0
after installing rmprebuild, you should perform
rpmrebuild -enp ~/rpmbuild/RPMS/x86_64/newnano-2.9.8-1.el1.x86_64.rpm
than in the manifest
mv /usr/bin/nano /usr/bin/newnano
than
yum remove nano
rpm -i /root/rpmbuild/RPMS/x86_64x/newnano-2.9.8-1.el8.x86_64.rpm

imka
- 53
- 3